Skip to content

Commit

Permalink
reset the deadline whatever happens if we reach it
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegn committed Aug 30, 2024
1 parent 44900af commit 7289573
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/corro-types/src/pubsub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1174,6 +1174,9 @@ impl Matcher {
}
},
_ = process_changes_deadline.as_mut() => {
process_changes_deadline
.as_mut()
.reset((Instant::now() + PROCESS_BUFFER_DEADLINE).into());
if buf_count == 0 {
continue;
}
Expand Down

0 comments on commit 7289573

Please sign in to comment.