Skip to content

Commit

Permalink
RatelimitingInterface have a new method ShutdownWithDrain
Browse files Browse the repository at this point in the history
The workqueue ratelimiting interface have a new method called
ShutDownWithDrain() and this commit adds an unimplemented method
in capacity_test.go for using the rateLimitingQueue as type
workqueue.RateLimitingInterface.

Signed-off-by: Humble Chirammal <[email protected]>
  • Loading branch information
humblec committed Dec 14, 2021
1 parent 9f2e818 commit 2723a28
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/capacity/capacity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1381,6 +1381,10 @@ type rateLimitingQueue struct {
shuttingDown bool
}

func (r *rateLimitingQueue) ShutDownWithDrain() {
klog.Error("ShutDownWithDrain is unimplemented")
}

var _ workqueue.RateLimitingInterface = &rateLimitingQueue{}

func (r *rateLimitingQueue) Add(item interface{}) {
Expand Down

0 comments on commit 2723a28

Please sign in to comment.