reference spec change in comment.

This commit is contained in:
Raúl Kripalani 2020-08-10 12:37:42 +01:00 committed by vyzo
parent 46536eccc4
commit a86ae585a6
1 changed files with 1 additions and 0 deletions

View File

@ -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)
}