mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-10-12 15:26:14 -08:00
release dashmap memory (#1485)
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user