Revert "Pass context to ListReleases when checking for new versions."
This reverts commit 07db6a2df1181f70fed378751fc08ba60dde511d.
This commit is contained in:
parent
b02e289734
commit
b385ffaee7
1 changed files with 1 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
|||
package version
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/url"
|
||||
|
||||
"github.com/containous/traefik/log"
|
||||
|
@ -30,7 +29,7 @@ func CheckNewVersion() {
|
|||
return
|
||||
}
|
||||
client.BaseURL = updateURL
|
||||
releases, resp, err := client.Repositories.ListReleases(context.Background(), "containous", "traefik", nil)
|
||||
releases, resp, err := client.Repositories.ListReleases("containous", "traefik", nil)
|
||||
if err != nil {
|
||||
log.Warnf("Error checking new version: %s", err)
|
||||
return
|
||||
|
|
Loading…
Add table
Reference in a new issue