From 199ebda68904f55d684eaea6aaaee6130ca16196 Mon Sep 17 00:00:00 2001 From: James Onnen Date: Sun, 17 Dec 2017 14:34:31 -0600 Subject: [PATCH] Use ::park() instead of ::sleep() --- src/bin.rs | 2 +- src/vfs_watch.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin.rs b/src/bin.rs index b0ff3a68..9422c62c 100644 --- a/src/bin.rs +++ b/src/bin.rs @@ -195,7 +195,7 @@ fn main() { println!("Server listening on port {}", port); loop { - thread::sleep(Duration::from_secs(1)); + thread::park(); } }, ("pack", _) => { diff --git a/src/vfs_watch.rs b/src/vfs_watch.rs index f28e200f..872ba683 100644 --- a/src/vfs_watch.rs +++ b/src/vfs_watch.rs @@ -93,7 +93,7 @@ impl VfsWatcher { } loop { - thread::sleep(Duration::from_secs(1)); + thread::park(); } } }