chiark
/
gitweb
/
~ian
/
hippotat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46e8b59
)
server: rename Client
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 16 Aug 2021 23:36:46 +0000
(
00:36
+0100)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/src/bin/server.rs
b/src/bin/server.rs
index fe161cc27f198f4710b7eb5abb222bfe4dc2122a..b0d347c49886efdc6e4f8c1c067cdf2672892939 100644
(file)
--- a/
src/bin/server.rs
+++ b/
src/bin/server.rs
@@
-18,11
+18,11
@@
const METADATA_MAX_LEN: usize = MAX_OVERHEAD;
#[derive(Debug)]
struct Global {
config: config::InstanceConfigGlobal,
- all_clients: HashMap<ClientName, Client
Handles
>,
+ all_clients: HashMap<ClientName, Client>,
}
#[derive(Debug)]
-struct Client
Handles
{
+struct Client {
ic: Arc<InstanceConfig>,
web: tokio::sync::mpsc::Sender<WebRequest>,
}
@@
-444,7
+444,7
@@
async fn main() {
}), format!("client {}", &ic)));
(ic.link.client,
- Client
Handles
{
+ Client {
ic,
web: web_send,
})