From a03435f0c0b052a9b92807c522cd50cfb7f738a4 Mon Sep 17 00:00:00 2001 From: Titouan Rigoudy Date: Sat, 23 Jan 2021 16:42:49 +0100 Subject: [PATCH] Reduce testing server result channel capacity to 1. --- src/proto/server/testing.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/proto/server/testing.rs b/src/proto/server/testing.rs index b0f54ea..d571056 100644 --- a/src/proto/server/testing.rs +++ b/src/proto/server/testing.rs @@ -177,9 +177,7 @@ impl ServerBuilder { let (shutdown_tx, shutdown_rx) = oneshot::channel(); let (handler_shutdown_tx, handler_shutdown_rx) = watch::channel(()); - - // TODO: configurable channel capacity. - let (result_tx, result_rx) = mpsc::channel(100); + let (result_tx, result_rx) = mpsc::channel(1); Ok(( Server {