Skip to content

Commit

Permalink
reference spec change in comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
raulk authored and vyzo committed Aug 10, 2020
1 parent 46536ec commit a86ae58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gossipsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit a86ae58

Please sign in to comment.