mirror of
https://github.com/logos-messaging/go-libp2p-pubsub.git
synced 2026-01-07 07:13:13 +00:00
only do PX on leave if PX was enabled in the node
This commit is contained in:
parent
e18b4edd9a
commit
8945f91465
@ -1005,7 +1005,7 @@ func (gs *GossipSubRouter) sendGraft(p peer.ID, topic string) {
|
||||
}
|
||||
|
||||
func (gs *GossipSubRouter) sendPrune(p peer.ID, topic string) {
|
||||
prune := []*pb.ControlPrune{gs.makePrune(p, topic, true)}
|
||||
prune := []*pb.ControlPrune{gs.makePrune(p, topic, gs.doPX)}
|
||||
out := rpcWithControl(nil, nil, nil, nil, prune)
|
||||
gs.sendRPC(p, out)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user