change sleep duration

This commit is contained in:
Masato Imai
2025-02-25 10:25:45 +00:00
parent c93c9e7df0
commit 5f2e0b931f

View File

@ -27,7 +27,7 @@ async fn main() {
let handle = tokio::spawn(async move {
loop {
peer.next().await;
sleep(Duration::from_secs_f32(0.1)).await;
sleep(Duration::from_millis(10)).await;
}
});
handles.push(handle);