Use ::park() instead of ::sleep()

This commit is contained in:
James Onnen
2017-12-17 14:34:31 -06:00
parent ae6ca6fb23
commit 199ebda689
2 changed files with 2 additions and 2 deletions

View File

@@ -195,7 +195,7 @@ fn main() {
println!("Server listening on port {}", port);
loop {
thread::sleep(Duration::from_secs(1));
thread::park();
}
},
("pack", _) => {

View File

@@ -93,7 +93,7 @@ impl VfsWatcher {
}
loop {
thread::sleep(Duration::from_secs(1));
thread::park();
}
}
}