diff options
Diffstat (limited to 'crates/server/src/main_loop')
-rw-r--r-- | crates/server/src/main_loop/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/server/src/main_loop/mod.rs b/crates/server/src/main_loop/mod.rs index 52f2a8977..2ef1e2d17 100644 --- a/crates/server/src/main_loop/mod.rs +++ b/crates/server/src/main_loop/mod.rs | |||
@@ -38,7 +38,9 @@ pub fn main_loop( | |||
38 | msg_sender: &mut Sender<RawMessage>, | 38 | msg_sender: &mut Sender<RawMessage>, |
39 | ) -> Result<()> { | 39 | ) -> Result<()> { |
40 | let pool = rayon::ThreadPoolBuilder::new() | 40 | let pool = rayon::ThreadPoolBuilder::new() |
41 | .num_threads(4).build() | 41 | .num_threads(4) |
42 | .panic_handler(|_| error!("thread panicked :(")) | ||
43 | .build() | ||
42 | .unwrap(); | 44 | .unwrap(); |
43 | let (task_sender, task_receiver) = unbounded::<Task>(); | 45 | let (task_sender, task_receiver) = unbounded::<Task>(); |
44 | let (fs_sender, fs_receiver, fs_watcher) = vfs::roots_loader(); | 46 | let (fs_sender, fs_receiver, fs_watcher) = vfs::roots_loader(); |