chiark / gitweb /
server: rename Client
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 16 Aug 2021 23:36:46 +0000 (00:36 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 16 Aug 2021 23:36:56 +0000 (00:36 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/bin/server.rs

index fe161cc27f198f4710b7eb5abb222bfe4dc2122a..b0d347c49886efdc6e4f8c1c067cdf2672892939 100644 (file)
@@ -18,11 +18,11 @@ const METADATA_MAX_LEN: usize = MAX_OVERHEAD;
 #[derive(Debug)]
 struct Global {
   config: config::InstanceConfigGlobal,
-  all_clients: HashMap<ClientName, ClientHandles>,
+  all_clients: HashMap<ClientName, Client>,
 }
 
 #[derive(Debug)]
-struct ClientHandles {
+struct Client {
   ic: Arc<InstanceConfig>,
   web: tokio::sync::mpsc::Sender<WebRequest>,
 }
@@ -444,7 +444,7 @@ async fn main() {
       }), format!("client {}", &ic)));
 
       (ic.link.client,
-       ClientHandles {
+       Client {
          ic,
          web: web_send,
        })