From 247e1a865db29a3189acfd89cde776a52a7ebaac Mon Sep 17 00:00:00 2001 From: rng-dynamics <73444470+rng-dynamics@users.noreply.github.com> Date: Tue, 14 Sep 2021 22:22:28 +0200 Subject: feature: Github bridge mutation rate limit (#694) Unified handling of rate limiting of github graphql api --- bridge/github/import.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bridge/github/import.go') 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() -- cgit