remove actix-threadpool re-export from actix-rt

This commit is contained in:
fakeshadow 2020-11-25 00:21:33 +08:00
parent 1f990005c6
commit 2f927487e8
3 changed files with 1 additions and 13 deletions

View File

@ -15,13 +15,8 @@ edition = "2018"
name = "actix_rt"
path = "src/lib.rs"
[features]
default = ["blocking"]
blocking = ["actix-threadpool"]
[dependencies]
actix-macros = "0.1.0"
actix-threadpool = { version = "0.3", optional = true }
copyless = "0.1.4"
futures-channel = "0.3.4"
futures-util = { version = "0.3.4", default-features = false, features = ["alloc"] }

View File

@ -134,10 +134,7 @@ impl Arbiter {
.unbounded_send(SystemCommand::RegisterArbiter(id, arb));
// run loop
let _ = match rt.block_on(stop_rx) {
Ok(code) => code,
Err(_) => 1,
};
let _ = rt.block_on(stop_rx).unwrap_or(1);
// unregister arbiter
let _ = System::current()

View File

@ -15,10 +15,6 @@ pub use self::builder::{Builder, SystemRunner};
pub use self::runtime::Runtime;
pub use self::system::System;
#[doc(hidden)]
#[cfg(feature = "blocking")]
pub use actix_threadpool as blocking;
/// Spawns a future on the current arbiter.
///
/// # Panics