fix(datastore/fetch): off-by-one oversight
This commit is contained in:
parent
fcccfb085f
commit
4b6fc63e8c
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user