mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-14 00:00:12 +02:00
threadpool: panic if a worker thread cannot be spawned (#826)
This commit is contained in:
committed by
Toby Lawrence
parent
78d1fe0eb0
commit
df299ced45
@@ -397,7 +397,8 @@ impl Pool {
|
||||
});
|
||||
|
||||
if let Err(e) = res {
|
||||
warn!("failed to spawn worker thread; err={:?}", e);
|
||||
error!("failed to spawn worker thread; err={:?}", e);
|
||||
panic!("failed to spawn worker thread: {:?}", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user