mirror of
https://github.com/rancher/norman.git
synced 2025-09-11 03:59:26 +00:00
Update vendor
This commit is contained in:
19
vendor/github.com/rancher/wrangler/pkg/ratelimit/none.go
generated
vendored
Normal file
19
vendor/github.com/rancher/wrangler/pkg/ratelimit/none.go
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
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 }
|
Reference in New Issue
Block a user