mirror of
https://github.com/logos-messaging/go-libp2p-pubsub.git
synced 2026-01-05 22:33:10 +00:00
add note about opp. graft threshold
This commit is contained in:
parent
22403baadd
commit
c041642546
@ -129,7 +129,8 @@ var (
|
|||||||
|
|
||||||
// GossipSubOpportunisticGraftTicks is the number of heartbeat ticks for attempting to improve the mesh
|
// GossipSubOpportunisticGraftTicks is the number of heartbeat ticks for attempting to improve the mesh
|
||||||
// with opportunistic grafting. Every GossipSubOpportunisticGraftTicks we will attempt to select some
|
// with opportunistic grafting. Every GossipSubOpportunisticGraftTicks we will attempt to select some
|
||||||
// high-scoring mesh peers to replace lower-scoring ones.
|
// high-scoring mesh peers to replace lower-scoring ones, if the median score of our mesh peers falls
|
||||||
|
// below a threshold (see https://godoc.org/github.com/libp2p/go-libp2p-pubsub#PeerScoreThresholds).
|
||||||
GossipSubOpportunisticGraftTicks uint64 = 60
|
GossipSubOpportunisticGraftTicks uint64 = 60
|
||||||
|
|
||||||
// GossipSubOpportunisticGraftPeers is the number of peers to opportunistically graft.
|
// GossipSubOpportunisticGraftPeers is the number of peers to opportunistically graft.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user