From 995b9a711f5dae8c0601d11a677222496167259b Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Fri, 14 Aug 2020 12:24:57 +0800 Subject: [PATCH] trivial: typo fix --- channeldb/channel.go | 5 ++--- htlcswitch/circuit_test.go | 4 ++-- htlcswitch/switch.go | 4 ++-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/channeldb/channel.go b/channeldb/channel.go index 765883525..31873ae3f 100644 --- a/channeldb/channel.go +++ b/channeldb/channel.go @@ -1787,13 +1787,12 @@ func (h *HTLC) Copy() HTLC { // LogUpdate represents a pending update to the remote commitment chain. The // log update may be an add, fail, or settle entry. We maintain this data in -// order to be able to properly retransmit our proposed -// state if necessary. +// order to be able to properly retransmit our proposed state if necessary. type LogUpdate struct { // LogIndex is the log index of this proposed commitment update entry. LogIndex uint64 - // UpdateMsg is the update message that was included within the our + // UpdateMsg is the update message that was included within our // local update log. The LogIndex value denotes the log index of this // update which will be used when restoring our local update log if // we're left with a dangling update on restart. diff --git a/htlcswitch/circuit_test.go b/htlcswitch/circuit_test.go index 00a4b6e75..d3ee7b4fe 100644 --- a/htlcswitch/circuit_test.go +++ b/htlcswitch/circuit_test.go @@ -1312,8 +1312,8 @@ func TestCircuitMapDeleteUnopenedCircuit(t *testing.T) { } } -// TestCircuitMapDeleteUnopenedCircuit checks that an open circuit can be -// removed persistently from the circuit map. +// TestCircuitMapDeleteOpenCircuit checks that an open circuit can be removed +// persistently from the circuit map. func TestCircuitMapDeleteOpenCircuit(t *testing.T) { t.Parallel() diff --git a/htlcswitch/switch.go b/htlcswitch/switch.go index 908ade7f0..221298333 100644 --- a/htlcswitch/switch.go +++ b/htlcswitch/switch.go @@ -219,8 +219,8 @@ type Switch struct { cfg *Config // networkResults stores the results of payments initiated by the user. - // results. The store is used to later look up the payments and notify - // the user of the result when they are complete. Each payment attempt + // The store is used to later look up the payments and notify the + // user of the result when they are complete. Each payment attempt // should be given a unique integer ID when it is created, otherwise // results might be overwritten. networkResults *networkResultStore