From 91930d4ab8a1522b82574303dd4cebde9f5426ee Mon Sep 17 00:00:00 2001 From: linghuying <1599935829@qq.com> Date: Tue, 16 Jul 2024 11:44:35 +0800 Subject: [PATCH] chore: fix some comments for struct field Signed-off-by: linghuying <1599935829@qq.com> --- brontide/noise.go | 2 +- chanfitness/chaneventstore.go | 2 +- channeldb/channel.go | 2 +- channeldb/migration21/common/enclosed_types.go | 2 +- channeldb/migration_01_to_11/channel.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/brontide/noise.go b/brontide/noise.go index 3c8c5cd74d..a55806399a 100644 --- a/brontide/noise.go +++ b/brontide/noise.go @@ -379,7 +379,7 @@ type Machine struct { // errors that cause partial writes. nextHeaderSend []byte - // nextHeaderBody holds a reference to the remaining body bytes to write + // nextBodySend holds a reference to the remaining body bytes to write // out for a pending message. This allows us to tolerate timeout errors // that cause partial writes. nextBodySend []byte diff --git a/chanfitness/chaneventstore.go b/chanfitness/chaneventstore.go index c3aa25efd9..8a4d6fbfdc 100644 --- a/chanfitness/chaneventstore.go +++ b/chanfitness/chaneventstore.go @@ -85,7 +85,7 @@ type Config struct { // for ease of testing. Clock clock.Clock - // WriteFlapCounts records the flap count for a set of peers on disk. + // WriteFlapCount records the flap count for a set of peers on disk. WriteFlapCount func(map[route.Vertex]*channeldb.FlapCount) error // ReadFlapCount gets the flap count for a peer on disk. diff --git a/channeldb/channel.go b/channeldb/channel.go index 18db1d2078..046ef8806d 100644 --- a/channeldb/channel.go +++ b/channeldb/channel.go @@ -3488,7 +3488,7 @@ type ChannelCloseSummary struct { // per-commitment-point. RemoteNextRevocation *btcec.PublicKey - // LocalChanCfg is the channel configuration for the local node. + // LocalChanConfig is the channel configuration for the local node. LocalChanConfig ChannelConfig // LastChanSyncMsg is the ChannelReestablish message for this channel diff --git a/channeldb/migration21/common/enclosed_types.go b/channeldb/migration21/common/enclosed_types.go index 58f5c9cf22..d129a6d52a 100644 --- a/channeldb/migration21/common/enclosed_types.go +++ b/channeldb/migration21/common/enclosed_types.go @@ -447,7 +447,7 @@ type ChannelCloseSummary struct { // per-commitment-point. RemoteNextRevocation *btcec.PublicKey - // LocalChanCfg is the channel configuration for the local node. + // LocalChanConfig is the channel configuration for the local node. LocalChanConfig ChannelConfig // LastChanSyncMsg is the ChannelReestablish message for this channel diff --git a/channeldb/migration_01_to_11/channel.go b/channeldb/migration_01_to_11/channel.go index 47cbca3559..ec025263bc 100644 --- a/channeldb/migration_01_to_11/channel.go +++ b/channeldb/migration_01_to_11/channel.go @@ -583,7 +583,7 @@ type ChannelCloseSummary struct { // per-commitment-point. RemoteNextRevocation *btcec.PublicKey - // LocalChanCfg is the channel configuration for the local node. + // LocalChanConfig is the channel configuration for the local node. LocalChanConfig ChannelConfig // LastChanSyncMsg is the ChannelReestablish message for this channel