chiark / gitweb /
rename a const
[hippotat.git] / server / server.rs
index 9ce63aaea8190782d4147f4c2be9e33d423a3ca6..0b5dde3e934929e6651173d93153297650d51f35 100644 (file)
@@ -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<_>>();