fix a typo

`timemoutseconds` should be `timeoutSeconds`.

Kubernetes-commit: ee5ea41f4d199b9cef022edc77185eab995c509d
This commit is contained in:
silenceshell
2017-12-20 13:35:43 +08:00
committed by Kubernetes Publisher
parent 7316584978
commit d6f5cef499

View File

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