Skip to content

Commit

Permalink
Update backoff retry to infinite loop (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
happyjian97 authored Aug 21, 2024
1 parent 182c836 commit e14ed24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cdnetworks/utils/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func WaitForDomainDeployed(client *cdnetworksapi.Client, domainId string) error

r := backoff.NewExponentialBackOff()
r.InitialInterval = 30 * time.Second
r.MaxElapsedTime = 10 * time.Minute
r.MaxElapsedTime = 0 // set as infinite retries.

return backoff.Retry(checkStatus, r)
}
Expand All @@ -49,7 +49,7 @@ func WaitForDomainDeleted(client *cdnetworksapi.Client, domainId string) error {
}

r := backoff.NewExponentialBackOff()
r.MaxElapsedTime = 10 * time.Minute
r.MaxElapsedTime = 0 // set as infinite retries.

return backoff.Retry(checkStatus, r)
}

0 comments on commit e14ed24

Please sign in to comment.