Skip to content

Commit

Permalink
fix: NoopSleeper should implement default
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <github@xuanwo.io>
  • Loading branch information
Xuanwo committed Aug 29, 2024
1 parent 86298fb commit 43c3cf3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backon/src/sleep.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ pub type DefaultSleeper = TokioSleeper;
pub type DefaultSleeper = GlooTimersSleep;

/// The no-op implementation of `Sleeper` that does nothing.
#[derive(Clone, Copy, Debug, Default)]
pub struct NoopSleeper;

impl Sleeper for NoopSleeper {
Expand Down

0 comments on commit 43c3cf3

Please sign in to comment.