Skip to content

Commit 35b36ad

Browse files
authored
Fix zone watch logic (#21)
1 parent 8f01913 commit 35b36ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/source_plugin/client/zone_creation_watcher.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ impl ZoneWatcher {
4545
}
4646
}
4747

48-
// purge everything that's not in the current ready-zone list
49-
last_ready_zones.retain(|existing_zid| ready_zones.contains(existing_zid));
48+
// update tracking: purge zones no longer ready, add newly ready zones
49+
last_ready_zones = ready_zones;
5050
}
5151
Err(error) => {
5252
error!("failed to read zones from daemon: {error}");

0 commit comments

Comments
 (0)