refactor: ♻️ refactor and update dependencies
This commit is contained in:
parent
73f624b14f
commit
0f31fd54ea
10 changed files with 107 additions and 83 deletions
|
@ -6,7 +6,7 @@ edition = "2021"
|
|||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
brotli = "4.0.0"
|
||||
brotli = "5.0.0"
|
||||
cpal = "0.15.3"
|
||||
futures-util = { version = "0.3.30", features = ["futures-sink", "sink"] }
|
||||
ringbuf = "0.3.3"
|
||||
|
|
|
@ -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