mirror of https://github.com/k3s-io/k3s
Fix logic of delete function
parent
67fee7318d
commit
0523ad6239
|
@ -75,10 +75,10 @@ func (q *graceTerminateRSList) remove(rs *listItem) bool {
|
|||
|
||||
uniqueRS := rs.String()
|
||||
if _, ok := q.list[uniqueRS]; ok {
|
||||
return false
|
||||
delete(q.list, uniqueRS)
|
||||
return true
|
||||
}
|
||||
delete(q.list, uniqueRS)
|
||||
return true
|
||||
return false
|
||||
}
|
||||
|
||||
func (q *graceTerminateRSList) flushList(handler func(rsToDelete *listItem) (bool, error)) bool {
|
||||
|
|
Loading…
Reference in New Issue