From fdb66cc908ce35616704f6370c8565f6e4939d01 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 22 Aug 2021 18:47:03 +0100 Subject: [PATCH] rename a const Signed-off-by: Ian Jackson --- server/server.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/server.rs b/server/server.rs index 9ce63aa..0b5dde3 100644 --- a/server/server.rs +++ b/server/server.rs @@ -21,7 +21,8 @@ pub struct Opts { } pub const METADATA_MAX_LEN: usize = MAX_OVERHEAD; -pub const INTERNAL_QUEUE: usize = 15; // xxx: config + +pub const MAXQUEUE_ROUTE2WEB: usize = 15; // xxx: config #[derive(Debug)] pub struct Global { @@ -119,7 +120,7 @@ async fn main() { // marked client-only so needs rework ); let (route_send, route_recv) = mpsc::channel( - INTERNAL_QUEUE + MAXQUEUE_ROUTE2WEB ); ((web_send, route_send), (web_recv, route_recv)) }).unzip::<_,_,Vec<_>,Vec<_>>(); -- 2.30.2