mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 15:58:37 +00:00
[kube-proxy/ipvs] Fix logic of delete function
This commit is contained in:
parent
7acb5a67fb
commit
b955634d99
@ -75,10 +75,10 @@ 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)
|
||||||
|
return true
|
||||||
}
|
}
|
||||||
delete(q.list, uniqueRS)
|
return false
|
||||||
return true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (q *graceTerminateRSList) flushList(handler func(rsToDelete *listItem) (bool, error)) bool {
|
func (q *graceTerminateRSList) flushList(handler func(rsToDelete *listItem) (bool, error)) bool {
|
||||||
|
Loading…
Reference in New Issue
Block a user