From 63ebd97c7c3ca75a30b9465b0727b2d4cb87d3f8 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Thu, 5 Jan 2023 11:31:01 +0100 Subject: Properly handle empty catalog (absent node) --- src/dns_config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3