From 4b6fc63e8cf891104e77a78cfc54a3a52bee8bf0 Mon Sep 17 00:00:00 2001 From: Camilo Aguilar Date: Thu, 15 May 2014 23:40:18 -0400 Subject: [PATCH] fix(datastore/fetch): off-by-one oversight --- datasource/datasource.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datasource/datasource.go b/datasource/datasource.go index 4ccce58..41b72c5 100644 --- a/datasource/datasource.go +++ b/datasource/datasource.go @@ -70,7 +70,7 @@ func fetchURL(rawurl string) ([]byte, error) { 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) resp, err := client.Get(userdataURL)