diff --git a/pkg/ratelimit/none.go b/pkg/ratelimit/none.go deleted file mode 100644 index e952e2ae5..000000000 --- a/pkg/ratelimit/none.go +++ /dev/null @@ -1,19 +0,0 @@ -package ratelimit - -import ( - "context" - - "k8s.io/client-go/util/flowcontrol" -) - -var ( - None = flowcontrol.RateLimiter((*none)(nil)) -) - -type none struct{} - -func (*none) TryAccept() bool { return true } -func (*none) Stop() {} -func (*none) Accept() {} -func (*none) QPS() float32 { return 1 } -func (*none) Wait(_ context.Context) error { return nil } diff --git a/restwatch/rest.go b/restwatch/rest.go index b02bf36f3..4442d517e 100644 --- a/restwatch/rest.go +++ b/restwatch/rest.go @@ -3,7 +3,7 @@ package restwatch import ( "time" - "github.com/rancher/norman/pkg/ratelimit" + "github.com/rancher/wrangler/pkg/ratelimit" "k8s.io/client-go/rest" )