aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/github/client.go
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/github/client.go')
-rw-r--r--bridge/github/client.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/bridge/github/client.go b/bridge/github/client.go
index 00981a56..57c8646a 100644
--- a/bridge/github/client.go
+++ b/bridge/github/client.go
@@ -130,7 +130,8 @@ func (c *rateLimitHandlerClient) callAPIDealWithLimit(ctx context.Context, apiCa
return nil
}
// matching the error string
- if strings.Contains(err.Error(), "API rate limit exceeded") {
+ if strings.Contains(err.Error(), "API rate limit exceeded") ||
+ strings.Contains(err.Error(), "was submitted too quickly") {
// a rate limit error
qctx, cancel = context.WithTimeout(ctx, defaultTimeout)
defer cancel()