From 5218889b43c4ee3eafee1c9871dbeba2887ded83 Mon Sep 17 00:00:00 2001 From: Vika Date: Mon, 26 Aug 2024 13:33:37 +0300 Subject: FileStorage: appease clippy and use block_in_place for rewinding feeds Using `tokio::task::block_in_place` downgrades the thread temporarily to avoid starvation. --- src/database/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/database/mod.rs') diff --git a/src/database/mod.rs b/src/database/mod.rs index d60ac05..7b50196 100644 --- a/src/database/mod.rs +++ b/src/database/mod.rs @@ -757,7 +757,7 @@ mod tests { } macro_rules! file_test { ($func_name:ident) => { - #[tokio::test] + #[tokio::test(flavor = "multi_thread", worker_threads = 1)] #[tracing_test::traced_test] async fn $func_name() { let tempdir = tempfile::tempdir().expect("Failed to create tempdir"); -- cgit 1.4.1