Skip to content

Commit 64394d0

Browse files
authored
Merge pull request #669 from GoodDaisy/master
chore: fix typos
2 parents 3743a49 + e45101c commit 64394d0

File tree

5 files changed

+23
-23
lines changed

5 files changed

+23
-23
lines changed

DOCKER.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ docker exec -it loopd loop out --channel <channel-id-you-want-to-use> --amt <amo
5353

5454
Things to note about this docker command:
5555
* `docker exec` runs a command on an already-running container. In this case `docker exec loopd` says effectively 'run the rest of this command-line as a command on the already-running container 'loopd'.
56-
* The `-it` flags tell docker to run the command interatively and act like it's using a terminal. This helps with commands that do more than just write to stdout.
56+
* The `-it` flags tell docker to run the command interactively and act like it's using a terminal. This helps with commands that do more than just write to stdout.
5757
* The remainder `loop out --channel <channel-id-you-want-to-use> --amt <amount-you-want-to-loop-out>` is the actual loop command you want to run. All the regular `loop` documentation applies to this bit.
5858

5959

executor.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -154,15 +154,15 @@ func (s *executor) run(mainCtx context.Context,
154154
defer s.wg.Done()
155155

156156
err := newSwap.execute(mainCtx, &executeConfig{
157-
statusChan: statusChan,
158-
sweeper: s.sweeper,
159-
blockEpochChan: queue.ChanOut(),
160-
timerFactory: s.executorConfig.createExpiryTimer,
161-
loopOutMaxParts: s.executorConfig.loopOutMaxParts,
162-
totalPaymentTimout: s.executorConfig.totalPaymentTimeout,
163-
maxPaymentRetries: s.executorConfig.maxPaymentRetries,
164-
cancelSwap: s.executorConfig.cancelSwap,
165-
verifySchnorrSig: s.executorConfig.verifySchnorrSig,
157+
statusChan: statusChan,
158+
sweeper: s.sweeper,
159+
blockEpochChan: queue.ChanOut(),
160+
timerFactory: s.executorConfig.createExpiryTimer,
161+
loopOutMaxParts: s.executorConfig.loopOutMaxParts,
162+
totalPaymentTimeout: s.executorConfig.totalPaymentTimeout,
163+
maxPaymentRetries: s.executorConfig.maxPaymentRetries,
164+
cancelSwap: s.executorConfig.cancelSwap,
165+
verifySchnorrSig: s.executorConfig.verifySchnorrSig,
166166
}, height)
167167
if err != nil && !errors.Is(
168168
err, context.Canceled,

loopout.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@ type loopOutSwap struct {
8989

9090
// executeConfig contains extra configuration to execute the swap.
9191
type executeConfig struct {
92-
sweeper *sweep.Sweeper
93-
statusChan chan<- SwapInfo
94-
blockEpochChan <-chan interface{}
95-
timerFactory func(time.Duration) <-chan time.Time
96-
loopOutMaxParts uint32
97-
totalPaymentTimout time.Duration
98-
maxPaymentRetries int
99-
cancelSwap func(context.Context, *outCancelDetails) error
100-
verifySchnorrSig func(pubKey *btcec.PublicKey, hash, sig []byte) error
92+
sweeper *sweep.Sweeper
93+
statusChan chan<- SwapInfo
94+
blockEpochChan <-chan interface{}
95+
timerFactory func(time.Duration) <-chan time.Time
96+
loopOutMaxParts uint32
97+
totalPaymentTimeout time.Duration
98+
maxPaymentRetries int
99+
cancelSwap func(context.Context, *outCancelDetails) error
100+
verifySchnorrSig func(pubKey *btcec.PublicKey, hash, sig []byte) error
101101
}
102102

103103
// loopOutInitResult contains information about a just-initiated loop out swap.
@@ -706,7 +706,7 @@ func (s *loopOutSwap) payInvoiceAsync(ctx context.Context,
706706
}
707707

708708
maxRetries := 1
709-
paymentTimeout := s.executeConfig.totalPaymentTimout
709+
paymentTimeout := s.executeConfig.totalPaymentTimeout
710710

711711
// Attempt to acquire and initialize the routing plugin.
712712
routingPlugin, err := AcquireRoutingPlugin(
@@ -1189,7 +1189,7 @@ func (s *loopOutSwap) waitForHtlcSpendConfirmed(globalCtx context.Context,
11891189
// Attempt to script path sweep. If the
11901190
// sweep fails, we can't do any better
11911191
// than go on and try again later as
1192-
// the preimage is alredy revealed and
1192+
// the preimage is already revealed and
11931193
// the server settled the swap payment.
11941194
// From the server's point of view the
11951195
// swap is succeeded at this point so

routing_plugin_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func TestLowHighRoutingPlugin(t *testing.T) {
131131
},
132132
},
133133
{
134-
name: "degenrate network 3",
134+
name: "degenerate network 3",
135135
//
136136
// _____Bob_____
137137
// / \

swap_server_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ type routeCancelMetadata struct {
646646
failureReason lnrpc.PaymentFailureReason
647647
}
648648

649-
// outCancelDetails contains the informaton required to cancel a loop out swap.
649+
// outCancelDetails contains the information required to cancel a loop out swap.
650650
type outCancelDetails struct {
651651
// Hash is the swap's hash.
652652
hash lntypes.Hash

0 commit comments

Comments
 (0)