Pass context to ListReleases when checking for new versions.
Required by go-github update.
This commit is contained in:
parent
a507cb4835
commit
e011792a90
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue