diff --git a/cmd/debug.go b/cmd/debug.go index 26cf0edbd..645b6dd1d 100644 --- a/cmd/debug.go +++ b/cmd/debug.go @@ -6,7 +6,6 @@ import ( "net/http" "os" "runtime" - "time" "github.com/codegangsta/cli" "github.com/exercism/cli/config" @@ -17,7 +16,7 @@ import ( func Debug(ctx *cli.Context) { defer fmt.Printf("\nIf you are having trouble and need to file a GitHub issue (https://github.com/exercism/exercism.io/issues) please include this information (except your API key. Keep that private).\n") - client := http.Client{Timeout: 5 * time.Second} + client := http.Client{} fmt.Printf("\n**** Debug Information ****\n") fmt.Printf("Exercism CLI Version: %s\n", ctx.App.Version) diff --git a/cmd/upgrade.go b/cmd/upgrade.go index 5458b26b7..53ffd77c8 100644 --- a/cmd/upgrade.go +++ b/cmd/upgrade.go @@ -7,7 +7,6 @@ import ( "net/http" "runtime" "strings" - "time" "github.com/codegangsta/cli" "github.com/kardianos/osext" @@ -24,7 +23,7 @@ var ( // Upgrade allows the user to upgrade to the latest version of the CLI. func Upgrade(ctx *cli.Context) { - client := http.Client{Timeout: 10 * time.Second} + client := http.Client{} rel, err := fetchLatestRelease(client) if err != nil { log.Fatal("unable to check latest release version: " + err.Error())