increase connection manager weight for mesh peers
This commit is contained in:
parent
7a3848073e
commit
0cab7f5e59
@ -1137,7 +1137,7 @@ func (gs *GossipSubRouter) getPeers(topic string, count int, filter func(peer.ID
|
||||
|
||||
func (gs *GossipSubRouter) tagPeer(p peer.ID, topic string) {
|
||||
tag := topicTag(topic)
|
||||
gs.p.host.ConnManager().TagPeer(p, tag, 2)
|
||||
gs.p.host.ConnManager().TagPeer(p, tag, 20)
|
||||
}
|
||||
|
||||
func (gs *GossipSubRouter) untagPeer(p peer.ID, topic string) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user