mirror of
https://github.com/logos-messaging/go-libp2p-pubsub.git
synced 2026-01-07 15:23:08 +00:00
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 topic, backoff := range gs.backoff {
|
||||||
for p, expire := range backoff {
|
for p, expire := range backoff {
|
||||||
// add some slack time to the expiration
|
// add some slack time to the expiration
|
||||||
|
// https://github.com/libp2p/specs/pull/289
|
||||||
if expire.Add(2 * GossipSubHeartbeatInterval).Before(now) {
|
if expire.Add(2 * GossipSubHeartbeatInterval).Before(now) {
|
||||||
delete(backoff, p)
|
delete(backoff, p)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user