fix(client): add audit log for unknown region host #1000075110

Signed-off-by: clinx <chenlin1@oppo.com>
This commit is contained in:
clinx 2025-04-23 14:39:37 +08:00 committed by zhumingze1108
parent 5ee4050950
commit c4124a35fa

View File

@ -599,7 +599,6 @@ func (rc *RemoteCache) ClassifyHostsByAvgDelay(fgID uint64, hosts []string) (sor
} else if avgTime <= sameRegionTimeout {
sortedHosts[SameRegionRank] = append(sortedHosts[SameRegionRank], host)
} else {
auditlog.LogOpMsg("ClassifyHostsByAvgDelay", fmt.Sprintf("add host %v to cross region by time %v", host, avgTime.String()), nil)
sortedHosts[CrossRegionRank] = append(sortedHosts[CrossRegionRank], host)
auditlog.LogOpMsg("ClassifyHostsByAvgDelay", fmt.Sprintf("add host %v to cross region by time %v", host, avgTime.String()), nil)
}