(rateLimiter RateLimiter, name string)
| 42 | } |
| 43 | |
| 44 | func NewNamedRateLimitingQueue(rateLimiter RateLimiter, name string) RateLimitingInterface { |
| 45 | return &rateLimitingType{ |
| 46 | DelayingInterface: NewNamedDelayingQueue(name), |
| 47 | rateLimiter: rateLimiter, |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | // rateLimitingType wraps an Interface and provides rateLimited re-enquing |
| 52 | type rateLimitingType struct { |
nothing calls this directly
no test coverage detected