mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-17 23:57:52 +00:00
fix a typo
`timemoutseconds` should be `timeoutSeconds`. Kubernetes-commit: ee5ea41f4d199b9cef022edc77185eab995c509d
This commit is contained in:
committed by
Kubernetes Publisher
parent
7316584978
commit
d6f5cef499
4
tools/cache/reflector.go
vendored
4
tools/cache/reflector.go
vendored
@@ -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()
|
||||||
|
Reference in New Issue
Block a user