release dashmap memory (#1485)

This commit is contained in:
Sijie.Sun authored and GitHub committed 2025-10-18 12:48:04 +08:00
1 parent 8f1786fa23
commit cc8f35787e
29 files changed
+339 -187

No files matched your search

@@ -442,6 +442,7 @@ impl RpcServerHook for MagicDnsServerInstanceData {
item.value_mut().remove(&remote_addr);
}
self.route_infos.retain(|_, v| !v.is_empty());
self.route_infos.shrink_to_fit();
self.update().await;
}
}