aboutsummaryrefslogtreecommitdiff
path: root/src/subs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/subs.rs')
-rw-r--r--src/subs.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/subs.rs b/src/subs.rs
index 5ecf9bd..1066c3f 100644
--- a/src/subs.rs
+++ b/src/subs.rs
@@ -13,7 +13,7 @@ use crate::{
},
};
-pub async fn run() -> ! {
+pub async fn run() {
let (tx, _rx) = std::sync::mpsc::channel();
let _threads = vec![
@@ -45,7 +45,7 @@ pub async fn run() -> ! {
}
} else {
std::thread::sleep(std::time::Duration::from_secs(2));
- Prompt::handle();
+ Prompt::handle().await;
}
// actix_web::rt::System::new("").block_on(rx.recv().unwrap().stop(true));