From a3445a188203e39360cdf6ec7099c07cb0cd4f7a Mon Sep 17 00:00:00 2001 From: bartick Date: Tue, 18 Jun 2024 01:36:57 +0530 Subject: [PATCH] fix: now waiting for 1 second after all the data was sent --- dccommands/src/worker/report.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dccommands/src/worker/report.rs b/dccommands/src/worker/report.rs index 7efd969..0f86e30 100644 --- a/dccommands/src/worker/report.rs +++ b/dccommands/src/worker/report.rs @@ -81,7 +81,8 @@ async fn send_message(channel_id: u64, posts: Vec) { for handle in handles { handle.await.unwrap(); - tokio::time::sleep(tokio::time::Duration::from_secs(1)).await; } + + tokio::time::sleep(tokio::time::Duration::from_secs(1)).await; } } \ No newline at end of file