mirror of
https://github.com/logos-messaging/go-libp2p-pubsub.git
synced 2026-01-02 12:53:09 +00:00
more info
This commit is contained in:
parent
3b1c59c733
commit
6b31a7bd2a
@ -75,7 +75,7 @@ type discover struct {
|
||||
|
||||
// MinTopicSize returns a function that checks if a router is ready for publishing based on the topic size.
|
||||
// The router ultimately decides the whether it is ready or not, the given size is just a suggestion. Note
|
||||
// that the topic size does not include the host in the count.
|
||||
// that the topic size does not include the router in the count.
|
||||
func MinTopicSize(size int) RouterReady {
|
||||
return func(rt PubSubRouter, topic string) (bool, error) {
|
||||
return rt.EnoughPeers(topic, size), nil
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user