Revert the change in number of executor threads

This commit is contained in:
Stjepan Glavina 2020-07-20 19:23:33 +02:00
parent 39f67144a4
commit f093e19805
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ impl<T> Task<T> {
T: Send + 'static,
{
static EXECUTOR: Lazy<Executor> = Lazy::new(|| {
for _ in 0..2 {
for _ in 0..num_cpus::get().max(1) {
thread::spawn(|| {
enter(|| {
let (p, u) = async_io::parking::pair();