diff options
Diffstat (limited to 'crates/server/src/main.rs')
-rw-r--r-- | crates/server/src/main.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/server/src/main.rs b/crates/server/src/main.rs index 8dca32183..9c044d5a9 100644 --- a/crates/server/src/main.rs +++ b/crates/server/src/main.rs | |||
@@ -27,8 +27,6 @@ mod conv; | |||
27 | mod main_loop; | 27 | mod main_loop; |
28 | mod vfs; | 28 | mod vfs; |
29 | 29 | ||
30 | use std::path::PathBuf; | ||
31 | |||
32 | use threadpool::ThreadPool; | 30 | use threadpool::ThreadPool; |
33 | use crossbeam_channel::bounded; | 31 | use crossbeam_channel::bounded; |
34 | use flexi_logger::{Logger, Duplicate}; | 32 | use flexi_logger::{Logger, Duplicate}; |
@@ -120,7 +118,7 @@ fn initialized(io: &mut Io) -> Result<()> { | |||
120 | let mut pool = ThreadPool::new(4); | 118 | let mut pool = ThreadPool::new(4); |
121 | let (task_sender, task_receiver) = bounded::<Task>(16); | 119 | let (task_sender, task_receiver) = bounded::<Task>(16); |
122 | let (fs_events_receiver, watcher) = vfs::watch(vec![ | 120 | let (fs_events_receiver, watcher) = vfs::watch(vec![ |
123 | PathBuf::from("./") | 121 | ::std::env::current_dir()?, |
124 | ]); | 122 | ]); |
125 | info!("lifecycle: handshake finished, server ready to serve requests"); | 123 | info!("lifecycle: handshake finished, server ready to serve requests"); |
126 | let res = main_loop::main_loop( | 124 | let res = main_loop::main_loop( |