diff options
author | rng-dynamics <73444470+rng-dynamics@users.noreply.github.com> | 2021-09-14 22:22:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-14 22:22:28 +0200 |
commit | 247e1a865db29a3189acfd89cde776a52a7ebaac (patch) | |
tree | a214a05c91c3a859eaaae621665492b24f776991 /bridge/github/import.go | |
parent | 58e6aec77f27214d7ba457ad709eedb0fc2f907b (diff) | |
download | git-bug-247e1a865db29a3189acfd89cde776a52a7ebaac.tar.gz |
feature: Github bridge mutation rate limit (#694)
Unified handling of rate limiting of github graphql api
Diffstat (limited to 'bridge/github/import.go')
-rw-r--r-- | bridge/github/import.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bridge/github/import.go b/bridge/github/import.go index f410cc65..a41083d2 100644 --- a/bridge/github/import.go +++ b/bridge/github/import.go @@ -22,7 +22,7 @@ type githubImporter struct { conf core.Configuration // default client - client *githubv4.Client + client *rateLimitHandlerClient // mediator to access the Github API mediator *importMediator @@ -73,6 +73,7 @@ func (gi *githubImporter) ImportAll(ctx context.Context, repo *cache.RepoCache, // Exactly the same is true for comments and comment edits. // As a consequence we need to look at the current event and one look ahead // event. + currEvent = nextEvent if currEvent == nil { currEvent = gi.getEventHandleMsgs() |