mirror of
https://github.com/logos-messaging/logos-messaging-go.git
synced 2026-01-08 17:03:09 +00:00
chore: fix some function name in comment
Signed-off-by: lvyaoting <lvyaoting@outlook.com>
This commit is contained in:
parent
6550ff35bc
commit
05bf1bcb02
@ -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
|
||||
}
|
||||
|
||||
@ -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