aboutsummaryrefslogtreecommitdiff
path: root/src/dns_config.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-01-05 11:31:01 +0100
committerAlex Auvolat <alex@adnab.me>2023-01-05 11:31:01 +0100
commit63ebd97c7c3ca75a30b9465b0727b2d4cb87d3f8 (patch)
tree4f5424741f09d731905ae4aa8eaf3783fb863bbb /src/dns_config.rs
parenta0e276a6297706459e79a4ea76f1e69e6520f08b (diff)
downloadD53-63ebd97c7c3ca75a30b9465b0727b2d4cb87d3f8.tar.gz
D53-63ebd97c7c3ca75a30b9465b0727b2d4cb87d3f8.zip
Properly handle empty catalog (absent node)
Diffstat (limited to 'src/dns_config.rs')
-rw-r--r--src/dns_config.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dns_config.rs b/src/dns_config.rs
index 37a49fa..4fe7c59 100644
--- a/src/dns_config.rs
+++ b/src/dns_config.rs
@@ -185,7 +185,7 @@ pub fn spawn_dns_config_task(
Ok((catalog, new_idx)) => {
let mut watch_state = nodes.get_mut(&node).unwrap();
watch_state.last_idx = Some(new_idx);
- watch_state.last_catalog = Some(catalog);
+ watch_state.last_catalog = catalog;
watch_state.retries = 0;
let idx = watch_state.last_idx;