🚧 This instance is under construction; expect occasional downtime. Runners available in /repos. Questions? Ask in #wikimedia-gitlab on libera.chat, or under GitLab on Phabricator.

Commit c0e54f9f authored by Addshore's avatar Addshore 🏄 Committed by Addshore
Browse files

Reduce gitlab repeating update request timeout

This can block for 20 seconds if there is no internet
connection, so set a much shorter timeout...
parent 4a1086c5
......@@ -20,7 +20,9 @@ package gitlab
import (
gitlab "github.com/xanzy/go-gitlab"
......@@ -30,9 +32,16 @@ var os = runtime.GOOS
var arch = runtime.GOARCH
func wikimediaClient() *gitlab.Client {
httpClient := http.Client{
Timeout: 2 * time.Second,
git, err := gitlab.NewClient(
if err != nil {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment