Skip to content

Commit e5ead81

Browse files
authored
Merge pull request kubernetes#91174 from jqmichael/updateHasSyncDoc
Polished up comments around HasSynced()
2 parents 6cf4ab3 + 168d084 commit e5ead81

File tree

1 file changed

+3
-3
lines changed
  • staging/src/k8s.io/client-go/tools/cache

1 file changed

+3
-3
lines changed

staging/src/k8s.io/client-go/tools/cache/fifo.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ type Queue interface {
7171

7272
// HasSynced returns true if the first batch of keys have all been
7373
// popped. The first batch of keys are those of the first Replace
74-
// operation if that happened before any Add, Update, or Delete;
75-
// otherwise the first batch is empty.
74+
// operation if that happened before any Add, AddIfNotPresent,
75+
// Update, or Delete; otherwise the first batch is empty.
7676
HasSynced() bool
7777

7878
// Close the queue
@@ -145,7 +145,7 @@ func (f *FIFO) Close() {
145145
}
146146

147147
// HasSynced returns true if an Add/Update/Delete/AddIfNotPresent are called first,
148-
// or an Update called first but the first batch of items inserted by Replace() has been popped
148+
// or the first batch of items inserted by Replace() has been popped.
149149
func (f *FIFO) HasSynced() bool {
150150
f.lock.Lock()
151151
defer f.lock.Unlock()

0 commit comments

Comments
 (0)