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),