aboutsummaryrefslogtreecommitdiff
path: root/crates/server/src/main_loop
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-09-08 07:18:42 +0100
committerAleksey Kladov <[email protected]>2018-09-08 07:18:42 +0100
commit44334f6f56bd99635f650796af0db8047e4c21c4 (patch)
tree2cee555747588449ba3cc1279b254e9b2140b83e /crates/server/src/main_loop
parent127814d9a7f62c834c0893ff05e933aac4be89e9 (diff)
fix labled expressions
Diffstat (limited to 'crates/server/src/main_loop')
-rw-r--r--crates/server/src/main_loop/mod.rs4
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();