Merge pull request #104841 from h4ghhh/deltafifo_rv

client-go: para 'resourceVersion' in DeltaFIFO.Replace is not used, so remove it
This commit is contained in:
Kubernetes Prow Robot
2021-09-10 00:48:00 -07:00
committed by GitHub

View File

@@ -572,7 +572,7 @@ func (f *DeltaFIFO) Pop(process PopProcessFunc) (interface{}, error) {
// of the Deltas associated with K. Otherwise the pre-existing keys
// are those listed by `f.knownObjects` and the current object of K is
// what `f.knownObjects.GetByKey(K)` returns.
func (f *DeltaFIFO) Replace(list []interface{}, resourceVersion string) error {
func (f *DeltaFIFO) Replace(list []interface{}, _ string) error {
f.lock.Lock()
defer f.lock.Unlock()
keys := make(sets.String, len(list))