Skip to content

Commit

Permalink
Improve comment
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Pietrek <[email protected]>
  • Loading branch information
Jarema committed Mar 2, 2023
1 parent 2d1cb70 commit 7afe915
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions async-nats/src/jetstream/consumer/pull.rs
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,8 @@ impl Stream {
.elapsed()
.gt(&batch_config.idle_heartbeat.saturating_mul(2))
{
// If we met the missed heartbeat threshold, continue checking,
// but reset the last seen timer to trigger error again
// If we met the missed heartbeat threshold, reset the timer
// so it will not be instantly triggered again.
*last_seen = Instant::now();
true
} else {
Expand Down

0 comments on commit 7afe915

Please sign in to comment.