mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-27 15:39:39 +00:00
fix typo of rate limiter
Kubernetes-commit: 7953cf0ce9f890b6cba7de3325a7ce68609832a0
This commit is contained in:
parent
e88163c224
commit
9d15ff74ca
@ -143,7 +143,7 @@ type LeaderElectionConfig struct {
|
|||||||
Callbacks LeaderCallbacks
|
Callbacks LeaderCallbacks
|
||||||
|
|
||||||
// WatchDog is the associated health checker
|
// WatchDog is the associated health checker
|
||||||
// WatchDog may be null if its not needed/configured.
|
// WatchDog may be null if it's not needed/configured.
|
||||||
WatchDog *HealthzAdaptor
|
WatchDog *HealthzAdaptor
|
||||||
|
|
||||||
// ReleaseOnCancel should be set true if the lock should be released
|
// ReleaseOnCancel should be set true if the lock should be released
|
||||||
|
@ -27,7 +27,7 @@ import (
|
|||||||
type RateLimiter interface {
|
type RateLimiter interface {
|
||||||
// When gets an item and gets to decide how long that item should wait
|
// When gets an item and gets to decide how long that item should wait
|
||||||
When(item interface{}) time.Duration
|
When(item interface{}) time.Duration
|
||||||
// Forget indicates that an item is finished being retried. Doesn't matter whether its for perm failing
|
// Forget indicates that an item is finished being retried. Doesn't matter whether it's for failing
|
||||||
// or for success, we'll stop tracking it
|
// or for success, we'll stop tracking it
|
||||||
Forget(item interface{})
|
Forget(item interface{})
|
||||||
// NumRequeues returns back how many failures the item has had
|
// NumRequeues returns back how many failures the item has had
|
||||||
|
Loading…
Reference in New Issue
Block a user