Clean up code
This commit is contained in:
parent
cbb50e5d53
commit
c3ff578c57
1 changed files with 1 additions and 5 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue