From dacbfbe7eff0ce9e73218176451f35d6ba2fab9c Mon Sep 17 00:00:00 2001 From: cuibuwei Date: Mon, 2 Dec 2024 11:39:15 +0800 Subject: [PATCH] chore: fix some function names in comment Signed-off-by: cuibuwei --- dht_options.go | 2 +- pb/message.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dht_options.go b/dht_options.go index e955a315..1c0b3d13 100644 --- a/dht_options.go +++ b/dht_options.go @@ -197,7 +197,7 @@ func Resiliency(beta int) Option { } } -// LookupInterval configures maximal number of go routines that can be used to +// LookupCheckConcurrency configures maximal number of go routines that can be used to // perform a lookup check operation, before adding a new node to the routing table. func LookupCheckConcurrency(n int) Option { return func(c *dhtcfg.Config) error { diff --git a/pb/message.go b/pb/message.go index c6d02fc7..97b46d93 100644 --- a/pb/message.go +++ b/pb/message.go @@ -48,7 +48,7 @@ func peerInfoToPBPeer(p peer.AddrInfo) Message_Peer { return pbp } -// PBPeerToPeer turns a *Message_Peer into its peer.AddrInfo counterpart +// PBPeerToPeerInfo turns a *Message_Peer into its peer.AddrInfo counterpart func PBPeerToPeerInfo(pbp Message_Peer) peer.AddrInfo { return peer.AddrInfo{ ID: peer.ID(pbp.Id),