Revised comments about f.knownObjects and added tests for Replace

Kubernetes-commit: 89c615f9c448503b674a0d61bfa8e413cefa4104
This commit is contained in:
Mike Spreitzer
2020-01-03 00:44:02 -08:00
committed by Kubernetes Publisher
parent c26559b124
commit 0421cde51b
3 changed files with 98 additions and 34 deletions

2
tools/cache/fifo.go vendored
View File

@@ -44,7 +44,7 @@ func (e ErrRequeue) Error() string {
return e.Err.Error()
}
// Queue extends Store with a collection of keys to "process".
// Queue extends Store with a collection of Store keys to "process".
// Every Add, Update, or Delete may put the object's key in that collection.
// A Queue has a way to derive the corresponding key given an accumulator.
// A Queue can be accessed concurrently from multiple goroutines.