Browse Source

panic on top-level error

master
Astro 3 years ago
parent
commit
93db5260ec
  1. 3
      src/main.rs

3
src/main.rs

@ -279,11 +279,10 @@ fn main() {
let workers: Vec<_> = (0..cpus)
.map(|_| s.spawn(|_| {
res.worker_loop()
.map_err(|e| println!("{}", e))
}))
.collect();
for worker in workers.into_iter() {
worker.join().expect("worker").unwrap();
worker.join().expect("worker join").expect("worker");
}
}).unwrap();
}

Loading…
Cancel
Save