refresh backoff when pruning during the backoff period

This commit is contained in:
vyzo 2020-03-23 00:01:35 +02:00
parent d0979258f7
commit 15d204cc14
1 changed files with 1 additions and 0 deletions

View File

@ -394,6 +394,7 @@ func (gs *GossipSubRouter) handleGraft(p peer.ID, ctl *pb.ControlMessage) []*pb.
_, backoff := gs.backoff[topic][p]
if backoff {
log.Debugf("GRAFT: ignoring backed off peer %s", p)
gs.addBackoff(p, topic)
prune = append(prune, topic)
continue
}