Skip to content

Commit

Permalink
Review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alexott committed Feb 1, 2024
1 parent b68f0d5 commit b126bc0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions exporter/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func (r *resource) ImportCommand(ic *importContext) string {

var (
maxRetries = 5
retryDelay = 2
retryDelaySeconds = 2
)

func isRetryableError(err string, i int) bool {
Expand Down Expand Up @@ -285,7 +285,7 @@ func (r *resource) ImportResource(ic *importContext) {
return
}
log.Printf("[INFO] next retry (%d) for searching of %v", (i + 1), r)
time.Sleep(time.Duration(retryDelay) * time.Second)
time.Sleep(time.Duration(retryDelaySeconds) * time.Second)
}
if r.ID == "" {
log.Printf("[WARN] Cannot find %s", r)
Expand Down Expand Up @@ -317,7 +317,7 @@ func (r *resource) ImportResource(ic *importContext) {
return
}
log.Printf("[INFO] next retry (%d) for reading of %s#%s", (i + 1), r.Resource, r.ID)
time.Sleep(time.Duration(retryDelay) * time.Second)
time.Sleep(time.Duration(retryDelaySeconds) * time.Second)
}
if r.Data.Id() == "" {
r.Data.SetId(r.ID)
Expand All @@ -335,7 +335,7 @@ func (r *resource) ImportResource(ic *importContext) {
return
}
log.Printf("[INFO] next retry (%d) for importing of %s#%s", (i + 1), r.Resource, r.ID)
time.Sleep(time.Duration(retryDelay) * time.Second)
time.Sleep(time.Duration(retryDelaySeconds) * time.Second)
}
}
ic.Add(r)
Expand Down

0 comments on commit b126bc0

Please sign in to comment.