Clean up code

This commit is contained in:
Neshura 2023-12-30 01:22:04 +01:00
parent cbb50e5d53
commit c3ff578c57
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

View file

@ -1,6 +1,6 @@
use std::collections::HashMap; use std::collections::HashMap;
use std::sync::{Arc}; use std::sync::{Arc};
use chrono::{DateTime, Duration, Timelike, Utc}; use chrono::{DateTime, Duration, Utc};
use lemmy_api_common::post::CreatePost; use lemmy_api_common::post::CreatePost;
use lemmy_db_schema::newtypes::{CommunityId, LanguageId}; use lemmy_db_schema::newtypes::{CommunityId, LanguageId};
use lemmy_db_schema::PostFeatureType; use lemmy_db_schema::PostFeatureType;
@ -40,10 +40,6 @@ pub(crate) async fn run(data: Arc<RwLock<SharedData>>) {
}; };
} }
while Utc::now().naive_local().second() != 30 {
sleep(Duration::milliseconds(100).to_std().unwrap()).await;
}
{ {
let mut write = data.write().await; let mut write = data.write().await;
write.start = Utc::now(); write.start = Utc::now();