From c3ff578c57aab01b692c3990c63f3f9594ae9c57 Mon Sep 17 00:00:00 2001 From: Neshura Date: Sat, 30 Dec 2023 01:22:04 +0100 Subject: [PATCH] Clean up code --- src/bot.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/bot.rs b/src/bot.rs index 8b0a61a..5ca1567 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -1,6 +1,6 @@ use std::collections::HashMap; use std::sync::{Arc}; -use chrono::{DateTime, Duration, Timelike, Utc}; +use chrono::{DateTime, Duration, Utc}; use lemmy_api_common::post::CreatePost; use lemmy_db_schema::newtypes::{CommunityId, LanguageId}; use lemmy_db_schema::PostFeatureType; @@ -40,10 +40,6 @@ pub(crate) async fn run(data: Arc>) { }; } - while Utc::now().naive_local().second() != 30 { - sleep(Duration::milliseconds(100).to_std().unwrap()).await; - } - { let mut write = data.write().await; write.start = Utc::now();