Reworded comment on requestedResyncPeriod

Tried to make it clearer.
This commit is contained in:
Mike Spreitzer 2020-01-06 13:10:39 -05:00
parent eef49c965f
commit 2ea338b63f

View File

@ -597,9 +597,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