From 261b8a00e452adca459ab90a1f5f14cae159ceb3 Mon Sep 17 00:00:00 2001 From: Mike Spreitzer Date: Mon, 6 Jan 2020 13:10:39 -0500 Subject: [PATCH] Reworded comment on requestedResyncPeriod Tried to make it clearer. Kubernetes-commit: 2ea338b63f2191d859ac68fbba74c93c1d7bc998 --- tools/cache/shared_informer.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/cache/shared_informer.go b/tools/cache/shared_informer.go index 13ef390f..18b16589 100644 --- a/tools/cache/shared_informer.go +++ b/tools/cache/shared_informer.go @@ -606,9 +606,12 @@ type processorListener struct { pendingNotifications buffer.RingGrowing // requestedResyncPeriod is how frequently the listener wants a - // full resync from the shared informer, but is bounded below by - // `minimumResyncPeriod` and the sharedProcessor's - // `resyncCheckPeriod`. + // full resync from the shared informer, but modified by two + // adjustments. One is imposing a lower bound, + // `minimumResyncPeriod`. The other is another lower bound, the + // sharedProcessor's `resyncCheckPeriod`, that is imposed in + // AddEventHandlerWithResyncPeriod invocations made after the + // sharedProcessor starts. requestedResyncPeriod time.Duration // resyncPeriod is the threshold that will be used in the logic // for this listener. This value differs from