From b4940ffe4aab2fd545c903bd69ed5803306bd395 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sat, 22 Apr 2023 18:33:44 +0200 Subject: [PATCH] updated thread select sleep --- src/ipblc.rs | 2 +- src/websocket.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ipblc.rs b/src/ipblc.rs index 7561992..1cf605a 100644 --- a/src/ipblc.rs +++ b/src/ipblc.rs @@ -107,7 +107,7 @@ pub async fn run() { } } } - _val = sleep_ms(200) => {} + _val = sleep_ms(50) => {} }; let ctxclone = Arc::clone(&ctxarc); diff --git a/src/websocket.rs b/src/websocket.rs index c5bf991..bb53a87 100644 --- a/src/websocket.rs +++ b/src/websocket.rs @@ -88,7 +88,7 @@ pub async fn websocketconnect<'a>( }; break; } - print!(" connected!\n"); + println!("connected"); let msg = json!({ "hostname": hostname }); socket .write_message(Message::Text(msg.to_string()))