Skip to content

Commit

Permalink
Fixing the naive implementation of sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
msabansal committed Dec 21, 2023
1 parent b4cfd20 commit ef8fa67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/core/src/sleep/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
mod thread;

#[cfg(not(feature = "tokio"))]
pub use self::thread::sleep;
pub use self::thread::{sleep, Sleep};
#[cfg(feature = "tokio")]
pub use tokio::time::sleep;
pub use tokio::time::{sleep, Sleep};

// Unit tests
#[cfg(test)]
Expand Down

0 comments on commit ef8fa67

Please sign in to comment.