1
0
mirror of https://github.com/rancher/steve.git synced 2025-09-20 19:08:46 +00:00

Update vendor

This commit is contained in:
Darren Shepherd
2020-03-26 13:56:53 -07:00
parent 7b434b1338
commit 7e84f96c0f
752 changed files with 74843 additions and 9714 deletions

View File

@@ -371,7 +371,7 @@ func NewForConfig(c *rest.Config) (*Clientset, error) {
configShallowCopy := *c
if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 {
if configShallowCopy.Burst <= 0 {
return nil, fmt.Errorf("Burst is required to be greater than 0 when RateLimiter is not set and QPS is set to greater than 0")
return nil, fmt.Errorf("burst is required to be greater than 0 when RateLimiter is not set and QPS is set to greater than 0")
}
configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst)
}