replace sets.List() with sets.UnsortedList()

This commit is contained in:
m1093782566
2017-11-13 10:20:54 +08:00
parent 338ee7f5d5
commit 83ada5c7bf
5 changed files with 10 additions and 10 deletions

View File

@@ -1609,7 +1609,7 @@ func (proxier *Proxier) syncProxyRules() {
// Finish housekeeping.
// TODO: these could be made more consistent.
for _, svcIP := range staleServices.List() {
for _, svcIP := range staleServices.UnsortedList() {
if err := utilproxy.ClearUDPConntrackForIP(proxier.exec, svcIP); err != nil {
glog.Errorf("Failed to delete stale service IP %s connections, error: %v", svcIP, err)
}