chore: make function comment match function name

Signed-off-by: suchsoon <silverjadebeauty@gmail.com>
This commit is contained in:
suchsoon 2025-03-13 22:41:37 +08:00
parent 24932b529c
commit 7955d93f6e
3 changed files with 3 additions and 3 deletions

View File

@ -223,7 +223,7 @@ func (ps *WakuPeerstoreImpl) PubSubTopics(p peer.ID) (protocol.TopicSet, error)
return protocol.NewTopicSet((result.([]string))...), nil
}
// PeersByPubSubTopic Returns list of peers that support list of pubSubTopics
// PeersByPubSubTopics Returns list of peers that support list of pubSubTopics
// If specifiPeers are listed, filtering is done from them otherwise from all peers in peerstore
func (ps *WakuPeerstoreImpl) PeersByPubSubTopics(pubSubTopics []string, specificPeers ...peer.ID) peer.IDSlice {
if specificPeers == nil {

View File

@ -80,7 +80,7 @@ func (arr *WakuFilterPushResult) Errors() []WakuFilterPushError {
return arr.errs
}
// NewWakuFilterLightnode returns a new instance of Waku Filter struct setup according to the chosen parameter and options
// NewWakuFilterLightNode returns a new instance of Waku Filter struct setup according to the chosen parameter and options
// Note that broadcaster is optional.
// Takes an optional peermanager if WakuFilterLightnode is being created along with WakuNode.
// If using libp2p host, then pass peermanager as nil

View File

@ -39,7 +39,7 @@ func toRLNSignal(wakuMessage *pb.WakuMessage) []byte {
return append(wakuMessage.Payload, contentTopicBytes...)
}
// Bytres2RateLimitProof converts a slice of bytes into a RateLimitProof instance
// BytesToRateLimitProof converts a slice of bytes into a RateLimitProof instance
func BytesToRateLimitProof(data []byte) (*rln.RateLimitProof, error) {
if data == nil {
return nil, nil