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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user