mirror of
https://github.com/logos-messaging/go-libp2p-pubsub.git
synced 2026-01-05 22:33:10 +00:00
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) {
|
func (gs *GossipSubRouter) tagPeer(p peer.ID, topic string) {
|
||||||
tag := topicTag(topic)
|
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) {
|
func (gs *GossipSubRouter) untagPeer(p peer.ID, topic string) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user