Skip to content

Commit

Permalink
Pass context to ListReleases when checking for new versions.
Browse files Browse the repository at this point in the history
Required by go-github update.
  • Loading branch information
timoreimann authored and akanto committed Mar 15, 2017
1 parent cc9bb4b commit 07db6a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion version/version.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package version

import (
"context"
"net/url"

"github.com/containous/traefik/log"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 07db6a2

Please sign in to comment.