Skip to content

Commit

Permalink
Reworded comment on requestedResyncPeriod
Browse files Browse the repository at this point in the history
Tried to make it clearer.
  • Loading branch information
MikeSpreitzer authored and skilxn-go committed Jan 27, 2020
1 parent 35d1c9e commit 4289b8a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions staging/src/k8s.io/client-go/tools/cache/shared_informer.go
Expand Up @@ -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
Expand Down

0 comments on commit 4289b8a

Please sign in to comment.