updated thread select sleep
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
6a99d6b388
commit
b4940ffe4a
@ -107,7 +107,7 @@ pub async fn run() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_val = sleep_ms(200) => {}
|
_val = sleep_ms(50) => {}
|
||||||
};
|
};
|
||||||
|
|
||||||
let ctxclone = Arc::clone(&ctxarc);
|
let ctxclone = Arc::clone(&ctxarc);
|
||||||
|
@ -88,7 +88,7 @@ pub async fn websocketconnect<'a>(
|
|||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
print!(" connected!\n");
|
println!("connected");
|
||||||
let msg = json!({ "hostname": hostname });
|
let msg = json!({ "hostname": hostname });
|
||||||
socket
|
socket
|
||||||
.write_message(Message::Text(msg.to_string()))
|
.write_message(Message::Text(msg.to_string()))
|
||||||
|
Loading…
Reference in New Issue
Block a user