diff --git a/src/main.rs b/src/main.rs index 9432a7c..038a460 100644 --- a/src/main.rs +++ b/src/main.rs @@ -49,7 +49,7 @@ impl Into for u8 { } } -async fn send_status( +fn send_status( rule: u8, states: String, ) -> impl Future> { @@ -118,7 +118,7 @@ async fn main() { // Send toot let sent = - tokio::time::timeout(Duration::from_secs(1), send_status(rule, states).await).await; + tokio::time::timeout(Duration::from_secs(1), send_status(rule, states)).await; // Figure out what went wrong match sent {