From d6f5cef4991dde52f102a884e7c4bb3dc2d683ca Mon Sep 17 00:00:00 2001 From: silenceshell Date: Wed, 20 Dec 2017 13:35:43 +0800 Subject: [PATCH] fix a typo `timemoutseconds` should be `timeoutSeconds`. Kubernetes-commit: ee5ea41f4d199b9cef022edc77185eab995c509d --- tools/cache/reflector.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/cache/reflector.go b/tools/cache/reflector.go index a97b5f98..d52bf043 100644 --- a/tools/cache/reflector.go +++ b/tools/cache/reflector.go @@ -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()