Skip to content

Commit

Permalink
made retry settings global
Browse files Browse the repository at this point in the history
  • Loading branch information
tybritten committed Aug 24, 2020
1 parent 0ab9be4 commit 797e815
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ func ShouldRetry(request *http.Request, response *http.Response, withDelay time.
return false
}

// retry settings
var retrycount = 5
var initialBackoff = 1 * time.Second
var retryConfig = ElasticRetries(initialBackoff, retrycount)

// CreateNewIndex creates a new index for the passed in alias.
//
// Note that we do not create an index with the passed name, instead creating one
Expand Down

0 comments on commit 797e815

Please sign in to comment.