Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Increase the number of parallel request handlers per connection (#35046)
Mikayla Maki13df1dd5fff2
diff --git a/crates/collab/src/rpc.rs b/crates/collab/src/rpc.rsindex 0735b08e892..5c5de2f36ef 100644--- a/crates/collab/src/rpc.rs+++ b/crates/collab/src/rpc.rs@@ -829,7 +829,7 @@ impl Server {// This arrangement ensures we will attempt to process earlier messages first, but fall// back to processing messages arrived later in the spirit of making progress.let mut foreground_message_handlers = FuturesUnordered::new();- let concurrent_handlers = Arc::new(Semaphore::new(256));+ let concurrent_handlers = Arc::new(Semaphore::new(512));loop {let next_message = async {let permit = concurrent_handlers.clone().acquire_owned().await.unwrap();