[kube-proxy/ipvs] Fix logic of delete function

This commit is contained in:
Laurent Bernaille 2018-11-28 17:16:07 +01:00
parent 7acb5a67fb
commit b955634d99

View File

@ -75,11 +75,11 @@ func (q *graceTerminateRSList) remove(rs *listItem) bool {
uniqueRS := rs.String() uniqueRS := rs.String()
if _, ok := q.list[uniqueRS]; ok { if _, ok := q.list[uniqueRS]; ok {
return false
}
delete(q.list, uniqueRS) delete(q.list, uniqueRS)
return true return true
} }
return false
}
func (q *graceTerminateRSList) flushList(handler func(rsToDelete *listItem) (bool, error)) bool { func (q *graceTerminateRSList) flushList(handler func(rsToDelete *listItem) (bool, error)) bool {
success := true success := true