From ad9b1834681cc498931297fad6febeb9a3b8d416 Mon Sep 17 00:00:00 2001 From: Matthew Donoughe Date: Sat, 16 May 2020 14:34:32 -0400 Subject: [PATCH] adjust limits --- plugin/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/src/main.rs b/plugin/src/main.rs index 7cae8eb..adb8f02 100644 --- a/plugin/src/main.rs +++ b/plugin/src/main.rs @@ -275,11 +275,11 @@ async fn handle_message( } } -#[tokio::main] +#[tokio::main(max_threads=1)] async fn main() { let params = &RegistrationParams::from_args(env::args()).unwrap(); - let (mut out_sink, mut out_stream) = mpsc::channel(1); + let (mut out_sink, mut out_stream) = mpsc::channel(2); let mut state = RawState { output: None, contexts: BTreeSet::new(),