Skip to content
Prev Previous commit
Next Next commit
the in docs
Co-authored-by: kostekIV <[email protected]>
  • Loading branch information
maciejnems and kostekIV authored Dec 29, 2022
commit 2d645e35f863f18f5d4f60819f1d261fc82209d6
4 changes: 2 additions & 2 deletions finality-aleph/src/sync/ticker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ impl Ticker {
}
}

/// Returns whether at least `min_timeout` time elapsed since last tick.
/// If `min_timeout` elapsed since last tick, returns true and records a tick.
/// Returns whether at least `min_timeout` time elapsed since the last tick.
/// If `min_timeout` elapsed since the last tick, returns true and records a tick.
/// If not, returns false and calls to `wait` will return when `min_timeout`
/// elapses until the next tick.
pub fn try_tick(&mut self) -> bool {
Expand Down