Skip to content

Commit

Permalink
threadpool: panic if a worker thread cannot be spawned (#826)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stjepan Glavina authored and tobz committed Jan 5, 2019
1 parent 78d1fe0 commit df299ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tokio-threadpool/src/pool/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit df299ce

Please sign in to comment.