aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/gitlab/gitlab.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-07-26 11:28:51 +0200
committerMichael Muré <batolettre@gmail.com>2020-07-26 11:28:51 +0200
commit3fcdd7ec801aea3d2a2c431c6791988a26f74512 (patch)
treef23416416643db27f6511e3c9a19997f592cc248 /bridge/gitlab/gitlab.go
parentac7e50863340ecddc2df219886019f0816e465f0 (diff)
downloadgit-bug-3fcdd7ec801aea3d2a2c431c6791988a26f74512.tar.gz
update go-gitlab
Diffstat (limited to 'bridge/gitlab/gitlab.go')
-rw-r--r--bridge/gitlab/gitlab.go10
1 files changed, 3 insertions, 7 deletions
diff --git a/bridge/gitlab/gitlab.go b/bridge/gitlab/gitlab.go
index d854f2f1..3625a9bb 100644
--- a/bridge/gitlab/gitlab.go
+++ b/bridge/gitlab/gitlab.go
@@ -1,7 +1,6 @@
package gitlab
import (
- "net/http"
"time"
"github.com/xanzy/go-gitlab"
@@ -48,12 +47,9 @@ func (Gitlab) NewExporter() core.Exporter {
}
func buildClient(baseURL string, token *auth.Token) (*gitlab.Client, error) {
- httpClient := &http.Client{
- Timeout: defaultTimeout,
- }
-
- gitlabClient := gitlab.NewClient(httpClient, token.Value)
- err := gitlabClient.SetBaseURL(baseURL)
+ gitlabClient, err := gitlab.NewClient(token.Value,
+ gitlab.WithBaseURL(baseURL),
+ )
if err != nil {
return nil, err
}