Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Adrien Guillo <[email protected]>
  • Loading branch information
fulmicoton and guilload authored Jan 23, 2024
1 parent 4987e09 commit 7823adf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions quickwit/quickwit-control-plane/src/debouncer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ impl Debouncer {

#[derive(Clone, Copy, Debug, PartialEq)]
enum DebouncerState {
/// More than cooldown_PERIOD has elapsed since the last time we emitted an event.
/// More than `cooldown_period` has elapsed since we last emitted an event.
NoCooldown,
// Less than cooldown_PERIOD has elapsed since the last time we emitted an event,
// Less than `cooldown_period` has elapsed since we last emitted an event,
// and no event has been received since then.
CooldownNotScheduled,
// Less than cooldown_PERIOD has elapsed since the last time we emitted an event,
// Less than `cooldown_period` has elapsed since we last emitted an event,
// and we have already received an event during this cooldown period.
CooldownScheduled,
}
Expand Down

0 comments on commit 7823adf

Please sign in to comment.