diff options
Diffstat (limited to 'bridge/github/github.go')
-rw-r--r-- | bridge/github/github.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bridge/github/github.go b/bridge/github/github.go index 1e85eb9a..cbeb03eb 100644 --- a/bridge/github/github.go +++ b/bridge/github/github.go @@ -5,7 +5,6 @@ import ( "context" "time" - "github.com/shurcooL/githubv4" "golang.org/x/oauth2" "github.com/MichaelMure/git-bug/bridge/core" @@ -47,11 +46,10 @@ func (*Github) NewExporter() core.Exporter { return &githubExporter{} } -func buildClient(token *auth.Token) *githubv4.Client { +func buildClient(token *auth.Token) *rateLimitHandlerClient { src := oauth2.StaticTokenSource( &oauth2.Token{AccessToken: token.Value}, ) httpClient := oauth2.NewClient(context.TODO(), src) - - return githubv4.NewClient(httpClient) + return newRateLimitHandlerClient(httpClient) } |