We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a88336 commit 6925f9eCopy full SHA for 6925f9e
src/scheduler.rs
@@ -40,7 +40,6 @@ async fn schedule_task(ctx: SerenityContext, task: Box<dyn Task>) {
40
tokio::time::sleep(next_run_in).await;
41
42
debug!("Running task {}", task.name());
43
- tokio::time::sleep(next_run_in).await;
44
if let Err(e) = task.run(ctx.clone()).await {
45
error!("Could not run task {}, error {}", task.name(), e);
46
}
0 commit comments