drop nil key

Signed-off-by: changzhen <changzhen5@huawei.com>
This commit is contained in:
changzhen 2021-07-22 17:38:11 +08:00
parent 1d911bbf79
commit 8e770944d1
1 changed files with 4 additions and 0 deletions

View File

@ -107,6 +107,10 @@ func (w *asyncWorker) EnqueueRateLimited(obj runtime.Object) {
return return
} }
if key == nil {
return
}
w.AddRateLimited(key) w.AddRateLimited(key)
} }