1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-09-02 14:16:37 +02:00

fix: relax bounds on with_tokio_rt (#569)

This commit is contained in:
Rob Ede
2024-06-09 07:12:24 +01:00
committed by GitHub
parent 0c26ecf9fa
commit 0d3d1926bc
4 changed files with 8 additions and 3 deletions

View File

@@ -109,7 +109,7 @@ impl Arbiter {
#[cfg(not(all(target_os = "linux", feature = "io-uring")))]
pub fn with_tokio_rt<F>(runtime_factory: F) -> Arbiter
where
F: Fn() -> tokio::runtime::Runtime + Send + 'static,
F: FnOnce() -> tokio::runtime::Runtime + Send + 'static,
{
let sys = System::current();
let system_id = sys.id();