reference spec change in comment.
This commit is contained in:
parent
46536eccc4
commit
a86ae585a6
|
@ -1501,6 +1501,7 @@ func (gs *GossipSubRouter) clearBackoff() {
|
|||
for topic, backoff := range gs.backoff {
|
||||
for p, expire := range backoff {
|
||||
// add some slack time to the expiration
|
||||
// https://github.com/libp2p/specs/pull/289
|
||||
if expire.Add(2 * GossipSubHeartbeatInterval).Before(now) {
|
||||
delete(backoff, p)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue