chore: fix some function name in comment

Signed-off-by: lvyaoting <lvyaoting@outlook.com>
This commit is contained in:
lvyaoting 2024-12-05 21:25:42 +08:00
parent 6550ff35bc
commit 05bf1bcb02
2 changed files with 2 additions and 2 deletions

View File

@ -382,7 +382,7 @@ func (w *WakuRelay) EnoughPeersToPublish() bool {
return w.EnoughPeersToPublishToTopic(DefaultWakuTopic)
}
// EnoughPeersToPublish returns whether there are enough peers connected in a pubsub topic
// EnoughPeersToPublishToTopic returns whether there are enough peers connected in a pubsub topic
func (w *WakuRelay) EnoughPeersToPublishToTopic(topic string) bool {
return len(w.PubSub().ListPeers(topic)) >= w.minPeersToPublish
}

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