From c4c5d5945f22b8fc133b97fa1368703e0d58be2b Mon Sep 17 00:00:00 2001 From: Aron Heinecke Date: Sat, 22 May 2021 03:07:01 +0200 Subject: [PATCH] Cleanup more dead code Signed-off-by: Aron Heinecke --- src/main.rs | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/main.rs b/src/main.rs index 2ca8c1f..b7b1d78 100644 --- a/src/main.rs +++ b/src/main.rs @@ -194,31 +194,9 @@ async fn main() -> Result<()> { } Ok(()) }); - // let start = std::time::Instant::now(); // Wait for ctrl + c tokio::select! { - // send_audio = recv.recv() => { - // if let Some(packet) = send_audio { - // con.send_audio(packet)?; - // } else { - // info!(logger, "Audio sending stream was canceled"); - // break; - // } - // } - // send_audio = rx.recv() => { - // tokio::time:: - // if let Some(packet) = send_audio { - // con.send_audio(packet)?; - // } else { - // info!(logger, "Audio sending stream was canceled"); - // break; - // } - // } _send = interval.tick() => { - // let dur = start.elapsed(); - // if dur.as_millis() > TICK_TIME as u128 { - // eprintln!("Tick took {}ms",dur.as_millis()); - // } let start = std::time::Instant::now(); if let Some(processed) = process_audio(&discord_voice_buffer,&encoder).await { con.send_audio(processed)?;