Remove options from queue ctors w/o metrics
This commit is contained in:
parent
95ad089ff8
commit
31f16db195
@ -36,8 +36,8 @@ type DelayingInterface interface {
|
|||||||
// NewDelayingQueue constructs a new workqueue with delayed queuing ability.
|
// NewDelayingQueue constructs a new workqueue with delayed queuing ability.
|
||||||
// NewDelayingQueue does not emit metrics. For use with a MetricsProvider, please use
|
// NewDelayingQueue does not emit metrics. For use with a MetricsProvider, please use
|
||||||
// NewNamedDelayingQueue instead.
|
// NewNamedDelayingQueue instead.
|
||||||
func NewDelayingQueue(opts ...QueueOption) DelayingInterface {
|
func NewDelayingQueue() DelayingInterface {
|
||||||
return NewDelayingQueueWithCustomClock(clock.RealClock{}, "", opts...)
|
return NewDelayingQueueWithCustomClock(clock.RealClock{}, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewDelayingQueueWithCustomQueue constructs a new workqueue with ability to
|
// NewDelayingQueueWithCustomQueue constructs a new workqueue with ability to
|
||||||
|
@ -36,9 +36,9 @@ type RateLimitingInterface interface {
|
|||||||
// Remember to call Forget! If you don't, you may end up tracking failures forever.
|
// Remember to call Forget! If you don't, you may end up tracking failures forever.
|
||||||
// NewRateLimitingQueue does not emit metrics. For use with a MetricsProvider, please use
|
// NewRateLimitingQueue does not emit metrics. For use with a MetricsProvider, please use
|
||||||
// NewNamedRateLimitingQueue instead.
|
// NewNamedRateLimitingQueue instead.
|
||||||
func NewRateLimitingQueue(rateLimiter RateLimiter, opts ...QueueOption) RateLimitingInterface {
|
func NewRateLimitingQueue(rateLimiter RateLimiter) RateLimitingInterface {
|
||||||
return &rateLimitingType{
|
return &rateLimitingType{
|
||||||
DelayingInterface: NewDelayingQueue(opts...),
|
DelayingInterface: NewDelayingQueue(),
|
||||||
rateLimiter: rateLimiter,
|
rateLimiter: rateLimiter,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user