File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,8 @@ impl Server {
6363 crate :: version ( ) ,
6464 ) ?;
6565
66+ // The number 32 was chosen arbitrarily. The main goal was to have enough capacity to queue
67+ // some responses before blocking.
6668 let ( main_loop_sender, main_loop_receiver) = crossbeam:: channel:: bounded ( 32 ) ;
6769 let client = Client :: new ( main_loop_sender. clone ( ) , connection. sender ( ) ) ;
6870
Original file line number Diff line number Diff line change @@ -342,7 +342,7 @@ fn respond<Req>(
342342 tracing:: error!( "An error occurred with request ID {id}: {err}" ) ;
343343 client. show_error_message ( "ty encountered a problem. Check the logs for more details." ) ;
344344 }
345- if let Err ( err) = client. respond ( & id, result) {
345+ if let Err ( err) = client. respond ( id, result) {
346346 tracing:: error!( "Failed to send response: {err}" ) ;
347347 }
348348}
You can’t perform that action at this time.
0 commit comments