1
0
mirror of https://github.com/containous/traefik.git synced 2024-12-23 17:34:13 +03:00

Pass context to ListReleases when checking for new versions.

Required by go-github update.
This commit is contained in:
Timo Reimann 2017-03-14 01:47:28 +01:00 committed by Attila Kanto
parent cc9bb4b1f8
commit 07db6a2df1

View File

@ -1,6 +1,7 @@
package version
import (
"context"
"net/url"
"github.com/containous/traefik/log"
@ -29,7 +30,7 @@ func CheckNewVersion() {
return
}
client.BaseURL = updateURL
releases, resp, err := client.Repositories.ListReleases("containous", "traefik", nil)
releases, resp, err := client.Repositories.ListReleases(context.Background(), "containous", "traefik", nil)
if err != nil {
log.Warnf("Error checking new version: %s", err)
return