mirror of
https://github.com/logos-messaging/logos-messaging-go.git
synced 2026-01-03 22:43:09 +00:00
chore: make function comment match function name
Signed-off-by: suchsoon <silverjadebeauty@gmail.com>
This commit is contained in:
parent
24932b529c
commit
7955d93f6e
@ -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 {
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user