diff options
author | Vika <vika@fireburn.ru> | 2024-08-26 13:33:37 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2024-08-26 14:36:57 +0300 |
commit | 5218889b43c4ee3eafee1c9871dbeba2887ded83 (patch) | |
tree | 1cc4791763a57853bd9107e6bbb3ae6ab0267453 /src/database/mod.rs | |
parent | d4fb528c14689263635b006e332cbca8d59d196a (diff) | |
download | kittybox-5218889b43c4ee3eafee1c9871dbeba2887ded83.tar.zst |
FileStorage: appease clippy and use block_in_place for rewinding feeds
Using `tokio::task::block_in_place` downgrades the thread temporarily to avoid starvation.
Diffstat (limited to 'src/database/mod.rs')
-rw-r--r-- | src/database/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |