From daf1e09176ab03413e7e8fe25d600adb5323b13b Mon Sep 17 00:00:00 2001 From: Akulij Date: Mon, 2 Jun 2025 16:51:19 +0500 Subject: [PATCH] delete unnecessary println --- src/bot_manager.rs | 3 --- src/botscript.rs | 4 ---- 2 files changed, 7 deletions(-) diff --git a/src/bot_manager.rs b/src/bot_manager.rs index 4377e9d..af45b65 100644 --- a/src/bot_manager.rs +++ b/src/bot_manager.rs @@ -157,7 +157,6 @@ where let thread = spawn_bot_thread(controller.bot.clone(), controller.db.clone(), handler).await?; - println!("Starting notificator"); let notificator = spawn_notificator_thread(controller.clone()).await?; let notificator = NotificatorThread::Running(Some(notificator)); @@ -235,8 +234,6 @@ pub async fn spawn_notificator_thread( match notifications { Some(n) => { // waiting time to send notification - println!("Will send notification after {:?}", n.wait_for()); - println!("Notifications: {:#?}", n.notifications()); tokio::time::sleep(n.wait_for()).await; 'n: for n in n.notifications().into_iter() { for user in n.get_users(&c.db).await?.into_iter() { diff --git a/src/botscript.rs b/src/botscript.rs index ad745af..d52a44a 100644 --- a/src/botscript.rs +++ b/src/botscript.rs @@ -625,12 +625,10 @@ impl NotificationTime { delta_minutes, } => { let delta = TimeDelta::minutes((delta_minutes + delta_hours * 60).into()); - println!("Delta: {delta}"); let mut estimation = *start_time; // super non-optimal, but fun :) loop { - println!("Adding delta to estimation"); if estimation < now + Duration::from_secs(1) { estimation += delta; } else { @@ -807,7 +805,6 @@ impl BotNotification { // immidate notification if time to do it passed let duration = (next - now).to_std().unwrap_or(Duration::from_secs(1)); - println!("Left time: {duration:?}"); // Rounding partitions of seconds Duration::from_secs(duration.as_secs()) } @@ -890,7 +887,6 @@ impl RunnerConfig { .filter(|f| f.left_time(&start_time, &now) > Duration::from_secs(1)) .sorted_by_key(|f| f.left_time(&start_time, &now)) .collect::>(); - println!("Orederd: {:#?}", ordered); let left = match ordered.first() { Some(notification) => notification.left_time(&start_time, &now),