From 27a234db662341cc77db3f0ff46db0899a97e330 Mon Sep 17 00:00:00 2001 From: crystalstall Date: Fri, 19 Jul 2024 14:20:07 +0800 Subject: [PATCH] chore: fix some comments for struct field Signed-off-by: crystalstall --- liquidity/liquidity.go | 2 +- sweepbatcher/sweep_batch.go | 2 +- sweepbatcher/sweep_batcher.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/liquidity/liquidity.go b/liquidity/liquidity.go index c50f7ea..8412e07 100644 --- a/liquidity/liquidity.go +++ b/liquidity/liquidity.go @@ -671,7 +671,7 @@ type Suggestions struct { // swaps on to the reason that we did not recommend a swap. DisqualifiedChans map[lnwire.ShortChannelID]Reason - // Disqualified peers maps the set of peers that we do not recommend + // DisqualifiedPeers maps the set of peers that we do not recommend // swaps for to the reason that they were excluded. DisqualifiedPeers map[route.Vertex]Reason } diff --git a/sweepbatcher/sweep_batch.go b/sweepbatcher/sweep_batch.go index 9a18aba..709c852 100644 --- a/sweepbatcher/sweep_batch.go +++ b/sweepbatcher/sweep_batch.go @@ -196,7 +196,7 @@ type batch struct { // errChan is the channel over which errors are received. errChan chan error - // batchTx is the transaction that is currently being monitored for + // batchTxid is the transaction that is currently being monitored for // confirmations. batchTxid *chainhash.Hash diff --git a/sweepbatcher/sweep_batcher.go b/sweepbatcher/sweep_batcher.go index 670f7e9..8033f54 100644 --- a/sweepbatcher/sweep_batcher.go +++ b/sweepbatcher/sweep_batcher.go @@ -229,7 +229,7 @@ type Batcher struct { // signerClient is the signer client that is used by batches. signerClient lndclient.SignerClient - // musig2ServerKit includes all the required functionality to collect + // musig2ServerSign includes all the required functionality to collect // and verify signatures by the swap server in order to cooperatively // sweep funds. musig2ServerSign MuSig2SignSweep