Skip to content

Commit

Permalink
Remove timeout from debug and upgrade cmds
Browse files Browse the repository at this point in the history
  • Loading branch information
Tonkpils committed Jan 3, 2016
1 parent a9cc563 commit 89e1025
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions cmd/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"net/http"
"os"
"runtime"
"time"

"github.com/codegangsta/cli"
"github.com/exercism/cli/config"
Expand All @@ -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)
Expand Down
3 changes: 1 addition & 2 deletions cmd/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"net/http"
"runtime"
"strings"
"time"

"github.com/codegangsta/cli"
"github.com/kardianos/osext"
Expand All @@ -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())
Expand Down

0 comments on commit 89e1025

Please sign in to comment.