mirror of
https://github.com/logos-messaging/go-libp2p-pubsub.git
synced 2026-01-06 06:43:11 +00:00
refresh backoff when pruning during the backoff period
This commit is contained in:
parent
d0979258f7
commit
15d204cc14
@ -394,6 +394,7 @@ func (gs *GossipSubRouter) handleGraft(p peer.ID, ctl *pb.ControlMessage) []*pb.
|
|||||||
_, backoff := gs.backoff[topic][p]
|
_, backoff := gs.backoff[topic][p]
|
||||||
if backoff {
|
if backoff {
|
||||||
log.Debugf("GRAFT: ignoring backed off peer %s", p)
|
log.Debugf("GRAFT: ignoring backed off peer %s", p)
|
||||||
|
gs.addBackoff(p, topic)
|
||||||
prune = append(prune, topic)
|
prune = append(prune, topic)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user