cargo fmt

This commit is contained in:
Daniella / Tove 2022-10-10 17:58:56 +02:00
parent b3d96fb069
commit 0cac4261c5

View file

@ -7,7 +7,8 @@ use std::{
path::Path,
process::{self, Stdio},
sync::{Arc, Mutex},
time::{Duration, SystemTime}, thread,
thread,
time::{Duration, SystemTime},
};
use form_data_builder::FormData;
@ -205,7 +206,10 @@ async fn send_frames(message: Message, ctx: Context) {
handle.pause().expect("voice: unable to pause");
handle.set_volume(1.0).unwrap();
println!("voice: waiting for video [api_time={api_time}]");
tokio::time::sleep(Duration::from_millis(5000 - (unix_millis() - sa) + (api_time * 2))).await;
tokio::time::sleep(Duration::from_millis(
5000 - (unix_millis() - sa) + (api_time * 2),
))
.await;
println!("voice: playing");
handle.play().expect("voice: unable to play");
});