mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-11 03:04:05 +09:00
[Vendor] Update xanzy/go-gitlab v0.31.0 => v0.37.0 (#12701)
* update github.com/xanzy/go-gitlab v0.31.0 => v0.37.0 * vendor * adapt changes Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
10
vendor/github.com/xanzy/go-gitlab/client_options.go
generated
vendored
10
vendor/github.com/xanzy/go-gitlab/client_options.go
generated
vendored
@ -24,6 +24,16 @@ func WithCustomBackoff(backoff retryablehttp.Backoff) ClientOptionFunc {
|
||||
}
|
||||
}
|
||||
|
||||
// WithCustomLimiter injects a custom rate limiter to the client.
|
||||
func WithCustomLimiter(limiter RateLimiter) ClientOptionFunc {
|
||||
return func(c *Client) error {
|
||||
c.configureLimiterOnce.Do(func() {
|
||||
c.limiter = limiter
|
||||
})
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
// WithCustomRetry can be used to configure a custom retry policy.
|
||||
func WithCustomRetry(checkRetry retryablehttp.CheckRetry) ClientOptionFunc {
|
||||
return func(c *Client) error {
|
||||
|
Reference in New Issue
Block a user