diff --git a/monolake/src/main.rs b/monolake/src/main.rs index 970ce66..db334a5 100644 --- a/monolake/src/main.rs +++ b/monolake/src/main.rs @@ -61,6 +61,8 @@ fn main() -> Result<()> { monolake_core::config::RuntimeType::Legacy => { monoio::RuntimeBuilder::::new() .enable_timer() + // Since we read file, we need a thread pool to avoid blocking the runtime + .attach_thread_pool(Box::new(monoio::blocking::DefaultThreadPool::new(4))) .build() .expect("Failed building the Runtime with LegacyDriver") .block_on(run(runtime_config, &args.config));