From: Ian Jackson Date: Sun, 22 Aug 2021 17:47:03 +0000 (+0100) Subject: rename a const X-Git-Tag: hippotat/1.0.0~91 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=fdb66cc908ce35616704f6370c8565f6e4939d01;p=hippotat.git rename a const Signed-off-by: Ian Jackson --- 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<_>>();