No busy-poll in ME

Co-Authored-By: brekotis <93345790+brekotis@users.noreply.github.com>
This commit is contained in:
Alexey
2026-03-07 03:25:26 +03:00
parent 0ff2e95e49
commit 93f58524d1
3 changed files with 53 additions and 28 deletions

View File

@@ -124,7 +124,7 @@ async fn check_family(
IpFamily::V6 => pool.proxy_map_v6.read().await,
};
for (dc, addrs) in map_guard.iter() {
let entry = dc_endpoints.entry(*dc).or_default();
let entry = dc_endpoints.entry(dc.abs()).or_default();
for (ip, port) in addrs.iter().copied() {
entry.push(SocketAddr::new(ip, port));
}