refactor: ♻️ refactor and update dependencies
This commit is contained in:
parent
73f624b14f
commit
0f31fd54ea
10 changed files with 107 additions and 83 deletions
|
@ -10,5 +10,7 @@ async fn main() {
|
|||
let (sound_stream_producer, sound_stream_consumer) = channel(BUFFER_LENGTH);
|
||||
tokio::spawn(recording(sound_stream_producer));
|
||||
tokio::spawn(start(sound_stream_consumer));
|
||||
tokio::time::sleep(Duration::from_secs(1000000000)).await;
|
||||
loop {
|
||||
tokio::time::sleep(Duration::from_secs(1000000000)).await;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -78,7 +78,7 @@ async fn message_organizer(message_producer: Sender<Message>, mut consumer: Rece
|
|||
// message_producer.receiver_count()
|
||||
// );
|
||||
}
|
||||
tokio::time::sleep(Duration::from_millis(50)).await;
|
||||
tokio::time::sleep(Duration::from_millis(100)).await;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue