fix(datastore/fetch): off-by-one oversight

This commit is contained in:
Camilo Aguilar 2014-05-15 23:40:18 -04:00
parent fcccfb085f
commit 4b6fc63e8c

View File

@ -70,7 +70,7 @@ func fetchURL(rawurl string) ([]byte, error) {
Transport: transport, Transport: transport,
} }
for retry := 0; retry <= maxRetries; retry++ { for retry := 1; retry <= maxRetries; retry++ {
log.Printf("Fetching user-data from %s. Attempt #%d", userdataURL, retry) log.Printf("Fetching user-data from %s. Attempt #%d", userdataURL, retry)
resp, err := client.Get(userdataURL) resp, err := client.Get(userdataURL)