HttpClient: Refactor timeout into two seperate functions

This commit is contained in:
Alex Crawford
2014-06-26 14:58:32 -07:00
parent ad66b1c92f
commit 68dc902ed1
7 changed files with 77 additions and 58 deletions

View File

@@ -25,7 +25,7 @@ func SSHImportKeysFromURL(system_user string, url string) error {
func fetchUserKeys(url string) ([]string, error) {
client := pkg.NewHttpClient()
data, err := client.Get(url)
data, err := client.GetRetry(url)
if err != nil {
return nil, err
}