From aea2fc690601a007b0cb1b1bdc8fb069a4722d59 Mon Sep 17 00:00:00 2001 From: Qing Ju Date: Sat, 16 May 2020 20:41:07 -0700 Subject: [PATCH] Polished up HasSync comment Kubernetes-commit: 168d0848299a625b9d4d2b85923efc60ed7de734 --- tools/cache/fifo.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/cache/fifo.go b/tools/cache/fifo.go index 67bb1cba..b9e269fa 100644 --- a/tools/cache/fifo.go +++ b/tools/cache/fifo.go @@ -71,8 +71,8 @@ type Queue interface { // HasSynced returns true if the first batch of keys have all been // popped. The first batch of keys are those of the first Replace - // operation if that happened before any Add, Update, or Delete; - // otherwise the first batch is empty. + // operation if that happened before any Add, AddIfNotPresent, + // Update, or Delete; otherwise the first batch is empty. HasSynced() bool // Close the queue @@ -145,7 +145,7 @@ func (f *FIFO) Close() { } // HasSynced returns true if an Add/Update/Delete/AddIfNotPresent are called first, -// or an Update called first but the first batch of items inserted by Replace() has been popped +// or the first batch of items inserted by Replace() has been popped. func (f *FIFO) HasSynced() bool { f.lock.Lock() defer f.lock.Unlock()