From 273422eef7963d2dd845f152310a9d111619a57e Mon Sep 17 00:00:00 2001 From: longxiangqiao Date: Sat, 13 Jul 2024 13:50:12 +0800 Subject: [PATCH] chore: fix some comments for struct field Signed-off-by: longxiangqiao --- interface.go | 6 +++--- liquidity/autoloop_testcontext_test.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/interface.go b/interface.go index 54fb338..1f13aea 100644 --- a/interface.go +++ b/interface.go @@ -318,7 +318,7 @@ type LoopInSwapInfo struct { // nolint // HtlcAddressP2TR contains the v3 (pay to taproot) htlc address. HtlcAddressP2TR btcutil.Address - // ServerMessages is the human-readable message received from the loop + // ServerMessage is the human-readable message received from the loop // server. ServerMessage string } @@ -333,7 +333,7 @@ type LoopOutSwapInfo struct { // nolint:revive // publish to. HtlcAddress btcutil.Address - // ServerMessages is the human-readable message received from the loop + // ServerMessage is the human-readable message received from the loop // server. ServerMessage string } @@ -354,7 +354,7 @@ type SwapInfo struct { loopdb.SwapContract - // LastUpdateTime is the time of the last state change. + // LastUpdate is the time of the last state change. LastUpdate time.Time // SwapHash stores the swap preimage hash. diff --git a/liquidity/autoloop_testcontext_test.go b/liquidity/autoloop_testcontext_test.go index cd4d767..a0c608a 100644 --- a/liquidity/autoloop_testcontext_test.go +++ b/liquidity/autoloop_testcontext_test.go @@ -30,7 +30,7 @@ type autoloopTestCtx struct { lnd *test.LndMockServices testClock *clock.TestClock - // quoteRequests is a channel that requests for quotes are pushed into. + // quoteRequest is a channel that requests for quotes are pushed into. quoteRequest chan *loop.LoopOutQuoteRequest // quotes is a channel that we get loop out quote requests on.