fix a typo

`timemoutseconds` should be `timeoutSeconds`.
This commit is contained in:
silenceshell 2017-12-20 13:35:43 +08:00 committed by GitHub
parent f302487942
commit ee5ea41f4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -302,12 +302,12 @@ func (r *Reflector) ListAndWatch(stopCh <-chan struct{}) error {
default:
}
timemoutseconds := int64(minWatchTimeout.Seconds() * (rand.Float64() + 1.0))
timeoutSeconds := int64(minWatchTimeout.Seconds() * (rand.Float64() + 1.0))
options = metav1.ListOptions{
ResourceVersion: resourceVersion,
// We want to avoid situations of hanging watchers. Stop any wachers that do not
// receive any events within the timeout window.
TimeoutSeconds: &timemoutseconds,
TimeoutSeconds: &timeoutSeconds,
}
r.metrics.numberOfWatches.Inc()