aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-01-11 22:24:35 +0100
committerAlex Auvolat <alex@adnab.me>2023-01-11 22:24:35 +0100
commit7c8dcd7aa757273e908a8ef77e701244c6e6d184 (patch)
tree0609a75e731e6786f7e08e41a4b155cef508fa51
parentf7682170805b7953d23745b0414b0f7b6a133225 (diff)
downloadD53-7c8dcd7aa757273e908a8ef77e701244c6e6d184.tar.gz
D53-7c8dcd7aa757273e908a8ef77e701244c6e6d184.zip
Remove useless maintenance of node_site
-rw-r--r--src/dns_config.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/dns_config.rs b/src/dns_config.rs
index 4fe7c59..77153ea 100644
--- a/src/dns_config.rs
+++ b/src/dns_config.rs
@@ -133,8 +133,6 @@ pub fn spawn_dns_config_task(
let mut nodes = HashMap::new();
let mut watches = FuturesUnordered::<BoxFuture<'static, (String, Result<_>)>>::new();
- let mut node_site = HashMap::new();
-
while !*must_exit.borrow() {
let list_nodes = select! {
ln = consul.list_nodes() => ln,
@@ -157,9 +155,6 @@ pub fn spawn_dns_config_task(
(node, res)
}));
}
- if let Some(site) = consul_node.meta.get("site") {
- node_site.insert(node.clone(), site.clone());
- }
}
}
Err(e) => {