Skip to content

Commit

Permalink
Merge pull request #242 from igomez06/main-adjust-backoff
Browse files Browse the repository at this point in the history
Adjust steps, do allow more time to load the schema.
  • Loading branch information
Israel Gomez authored Jul 26, 2024
2 parents 67127ca + 616650d commit a83dc44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clients/rancher/v1/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const (
hostRegex = "https://(.+)/v1"
duration = 100 * time.Millisecond // duration of 100 miliseconds to be short since this is a fast check
factor = 2 // with a factor of 1
steps = 8 // only do 8 tries
steps = 12 // only do 12 tries
)

// State is the Steve specific field in the rancher Steve API
Expand Down Expand Up @@ -118,7 +118,7 @@ func NewClient(opts *clientbase.ClientOpts) (*Client, error) {
if previousTypesLength == typesLength {
count += 1
}
if count > 3 {
if count > 4 {
return true, nil
}

Expand Down

0 comments on commit a83dc44

Please sign in to comment.