mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 22:17:14 +00:00
fix a typo
`timemoutseconds` should be `timeoutSeconds`.
This commit is contained in:
parent
f302487942
commit
ee5ea41f4d
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user