From a86ae585a6ed841b9f855baa0d7fd44cb38c407d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Kripalani?= Date: Mon, 10 Aug 2020 12:37:42 +0100 Subject: [PATCH] reference spec change in comment. --- gossipsub.go | 1 + 1 file changed, 1 insertion(+) diff --git a/gossipsub.go b/gossipsub.go index 247fda9..c4e37d1 100644 --- a/gossipsub.go +++ b/gossipsub.go @@ -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) }