mirror of
https://github.com/logos-messaging/go-libp2p-pubsub.git
synced 2026-01-08 15:53:07 +00:00
shift the message history window at the end of the heartbeat
This commit is contained in:
parent
64cdbbabbc
commit
599ccffecd
@ -324,8 +324,6 @@ func (gs *GossipSubRouter) heartbeatTimer() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (gs *GossipSubRouter) heartbeat() {
|
func (gs *GossipSubRouter) heartbeat() {
|
||||||
gs.mcache.Shift()
|
|
||||||
|
|
||||||
// flush pending control message from retries and gossip
|
// flush pending control message from retries and gossip
|
||||||
// that hasn't been piggybacked since the last heartbeat
|
// that hasn't been piggybacked since the last heartbeat
|
||||||
gs.flush()
|
gs.flush()
|
||||||
@ -441,6 +439,9 @@ func (gs *GossipSubRouter) heartbeat() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// advance the message history window
|
||||||
|
gs.mcache.Shift()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (gs *GossipSubRouter) flush() {
|
func (gs *GossipSubRouter) flush() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user