diff options
author | Alexander Scharinger <rng.dynamics@gmail.com> | 2021-03-27 22:45:49 +0100 |
---|---|---|
committer | Alexander Scharinger <rng.dynamics@gmail.com> | 2021-03-27 22:45:49 +0100 |
commit | 21b330dad19585ec6000d4ce385ebd8619dd07de (patch) | |
tree | 3272e1ba1eda04f2d0e5316bd3defaf093952900 | |
parent | 2646c63213cb4d1fa04e1b61051f4ac97c1978f0 (diff) | |
download | git-bug-21b330dad19585ec6000d4ce385ebd8619dd07de.tar.gz |
Github bridge: fix message about timeout
-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 ceb35ef0..d2e5d659 100644 --- a/bridge/github/import.go +++ b/bridge/github/import.go @@ -67,7 +67,6 @@ func (gi *githubImporter) ImportAll(ctx context.Context, repo *cache.RepoCache, if currEvent == nil { break } - nextEvent = gi.mediator.NextImportEvent() switch event := currEvent.(type) { case MessageEvent: @@ -79,6 +78,7 @@ func (gi *githubImporter) ImportAll(ctx context.Context, repo *cache.RepoCache, return } // second: create new issue + nextEvent = gi.mediator.NextImportEvent() switch next := nextEvent.(type) { case IssueEditEvent: // consuming and using next event @@ -100,6 +100,7 @@ func (gi *githubImporter) ImportAll(ctx context.Context, repo *cache.RepoCache, return } case TimelineEvent: + nextEvent = gi.mediator.NextImportEvent() if next, ok := nextEvent.(CommentEditEvent); ok && event.Typename == "IssueComment" { // consuming and using next event nextEvent = nil |