mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-07-30 05:18:48 +00:00
fix: Remove GitHub rate-limit client total sleep limit (#5591)
Signed-off-by: Ricard Bejarano <ribejara@thousandeyes.com>
This commit is contained in:
@@ -125,11 +125,7 @@ func NewGithubClient(hostname string, credentials GithubCredentials, config Gith
|
||||
return nil, errors.Wrap(err, "error initializing github authentication transport")
|
||||
}
|
||||
|
||||
transportWithRateLimit, err := github_ratelimit.NewRateLimitWaiterClient(
|
||||
transport.Transport,
|
||||
github_ratelimit.WithTotalSleepLimit(time.Minute, func(callbackContext *github_ratelimit.CallbackContext) {
|
||||
logger.Warn("github rate limit exceeded total sleep time, requests will fail to avoid penalties from github")
|
||||
}))
|
||||
transportWithRateLimit, err := github_ratelimit.NewRateLimitWaiterClient(transport.Transport)
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "error initializing github rate limit transport")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user