Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some typos #9388

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/sub_logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

// SubLogCreator can be used to create a new logger for a particular subsystem.
type SubLogCreator interface {
// Logger returns a new logger for a particular subsytem.
// Logger returns a new logger for a particular subsystem.
Logger(subsystemTag string) btclog.Logger
}

Expand Down
2 changes: 1 addition & 1 deletion chainio/consumer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func TestProcessBlockConsumerQuitAfterSend(t *testing.T) {
require.Equal(t, mockBeat, beat)

// Instead of sending nil to the consumer's error channel, close the
// quit chanel.
// quit channel.
close(quitChan)

// Assert ProcessBlock returned nil.
Expand Down
4 changes: 2 additions & 2 deletions chainio/dispatcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func TestDispatchSequential(t *testing.T) {
// prevConsumer specifies the previous consumer that was called.
var prevConsumer string

// Mock the ProcessBlock on consumers to reutrn immediately.
// Mock the ProcessBlock on consumers to return immediately.
consumer1.On("ProcessBlock", mockBeat).Return(nil).Run(
func(args mock.Arguments) {
// Check the order of the consumers.
Expand Down Expand Up @@ -260,7 +260,7 @@ func TestDispatchBlocks(t *testing.T) {
b.RegisterQueue([]Consumer{consumer})

// Mock the consumer to return nil error on ProcessBlock. This
// implictly asserts that the step `notifyQueues` is successfully
// implicitly asserts that the step `notifyQueues` is successfully
// reached in the `dispatchBlocks` method.
consumer.On("ProcessBlock", mock.Anything).Return(nil).Once()

Expand Down
2 changes: 1 addition & 1 deletion chainntnfs/bitcoindnotify/bitcoind.go
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ out:
func (b *BitcoindNotifier) handleRelevantTx(tx *btcutil.Tx,
mempool bool, height uint32) {

// If this is a mempool spend, we'll ask the mempool notifier to hanlde
// If this is a mempool spend, we'll ask the mempool notifier to handle
// it.
if mempool {
err := b.memNotifier.ProcessRelevantSpendTx(tx)
Expand Down
2 changes: 1 addition & 1 deletion chainntnfs/btcdnotify/btcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ out:
func (b *BtcdNotifier) handleRelevantTx(tx *btcutil.Tx,
mempool bool, height uint32) {

// If this is a mempool spend, we'll ask the mempool notifier to hanlde
// If this is a mempool spend, we'll ask the mempool notifier to handle
// it.
if mempool {
err := b.memNotifier.ProcessRelevantSpendTx(tx)
Expand Down
2 changes: 1 addition & 1 deletion channeldb/revocation_log_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ func TestPutRevocationLog(t *testing.T) {
},
{
// Test dust htlc is not saved.
name: "dust htlc not saved with amout data",
name: "dust htlc not saved with amount data",
commit: testCommitDust,
ourIndex: 0,
theirIndex: 1,
Expand Down
4 changes: 2 additions & 2 deletions contractcourt/breach_arbitrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -1719,7 +1719,7 @@ func NewRetributionStore(db kvdb.Backend) *RetributionStore {
}

// taprootBriefcaseFromRetInfo creates a taprootBriefcase from a retribution
// info struct. This stores all the tap tweak informatoin we need to inrder to
// info struct. This stores all the tap tweak information we need to inrder to
// be able to hadnel breaches after a restart.
func taprootBriefcaseFromRetInfo(retInfo *retributionInfo) *taprootBriefcase {
tapCase := newTaprootBriefcase()
Expand Down Expand Up @@ -1776,7 +1776,7 @@ func taprootBriefcaseFromRetInfo(retInfo *retributionInfo) *taprootBriefcase {
return tapCase
}

// applyTaprootRetInfo attaches the taproot specific inforamtion in the tapCase
// applyTaprootRetInfo attaches the taproot specific information in the tapCase
// to the passed retInfo struct.
func applyTaprootRetInfo(tapCase *taprootBriefcase,
retInfo *retributionInfo) error {
Expand Down
4 changes: 2 additions & 2 deletions contractcourt/htlc_timeout_resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ func (h *htlcTimeoutResolver) Resolve() (ContractResolver, error) {
}

// sweepTimeoutTx sends a second level timeout transaction to the sweeper.
// This transaction uses the SINLGE|ANYONECANPAY flag.
// This transaction uses the SINGLE|ANYONECANPAY flag.
func (h *htlcTimeoutResolver) sweepTimeoutTx() error {
var inp input.Input
if h.isTaproot() {
Expand Down Expand Up @@ -1070,7 +1070,7 @@ func (h *htlcTimeoutResolver) sweepTimeoutTxOutput() error {

// TODO(yy): use the result chan returned from SweepInput to get the
// confirmation status of this sweeping tx so we don't need to make
// anothe subscription via `RegisterSpendNtfn` for this outpoint here
// another subscription via `RegisterSpendNtfn` for this outpoint here
// in the resolver.
_, err = h.Sweeper.SweepInput(
inp,
Expand Down
2 changes: 1 addition & 1 deletion discovery/gossiper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2709,7 +2709,7 @@ func assertBroadcast(t *testing.T, ctx *testCtx, num int) []lnwire.Message {
return msgs
}

// assertProcessAnnouncemnt is a helper method that checks that the result of
// assertProcessAnnouncement is a helper method that checks that the result of
// processing an announcement is successful.
func assertProcessAnnouncement(t *testing.T, result chan error) {
t.Helper()
Expand Down
2 changes: 1 addition & 1 deletion docs/code_contribution_guidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ Examples of common patterns w.r.t commit structures within the project:
small scale, fix typos, or any changes that do not modify the code, the
commit message of the HEAD commit of the PR should end with `[skip ci]` to
skip the CI checks. When pushing to such an existing PR, the latest commit
being pushed should end with `[skip ci]` as to not inadvertantly trigger the
being pushed should end with `[skip ci]` as to not inadvertently trigger the
CI checks.

## Sign your git commits
Expand Down