Closing bug involving heartbeat timeout.

The timeout logic was inverted. A timeout is when now > deadline.

Closes #48.
This commit is contained in:
Paul Masurel 2021-06-21 16:25:23 +09:00
parent badac7d551
commit fb4d3c88ce
1 changed files with 1 additions and 1 deletions

View File

@ -262,7 +262,7 @@ impl ArtilleryEpidemic {
fn prune_timed_out_responses(&mut self) {
let now = Utc::now();
let (remaining, expired): (Vec<_>, Vec<_>) = self
let (expired, remaining): (Vec<_>, Vec<_>) = self
.pending_responses
.iter()
.cloned()