summaryrefslogtreecommitdiffstats
path: root/tokio/src/runtime/blocking/pool.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio/src/runtime/blocking/pool.rs')
-rw-r--r--tokio/src/runtime/blocking/pool.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/tokio/src/runtime/blocking/pool.rs b/tokio/src/runtime/blocking/pool.rs
index df0175b1..2d44f896 100644
--- a/tokio/src/runtime/blocking/pool.rs
+++ b/tokio/src/runtime/blocking/pool.rs
@@ -94,10 +94,7 @@ where
impl BlockingPool {
pub(crate) fn new(builder: &Builder, thread_cap: usize) -> BlockingPool {
let (shutdown_tx, shutdown_rx) = shutdown::channel();
- #[cfg(feature = "blocking")]
let keep_alive = builder.keep_alive.unwrap_or(KEEP_ALIVE);
- #[cfg(not(feature = "blocking"))]
- let keep_alive = KEEP_ALIVE;
BlockingPool {
spawner: Spawner {