remove unnecessary async and select!{}

This commit is contained in:
Lambda 2024-05-20 16:49:20 +00:00
parent a60501189d
commit 092315e2cd
2 changed files with 42 additions and 39 deletions

View file

@ -1165,7 +1165,7 @@ impl KeyValueDatabase {
services().sending.start_handler();
Self::start_cleanup_task().await;
Self::start_cleanup_task();
Ok(())
}
@ -1182,7 +1182,7 @@ impl KeyValueDatabase {
}
#[tracing::instrument]
pub(crate) async fn start_cleanup_task() {
pub(crate) fn start_cleanup_task() {
use std::time::{Duration, Instant};
#[cfg(unix)]