Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hgiasac committed Nov 9, 2024
1 parent 6cbdcb1 commit 9128520
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions connector/internal/request_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ func (c *RequestBuilder) Build() (*RetryableRequest, error) {
request.Runtime.Retry.HTTPStatus = rawRequest.RuntimeSettings.Retry.HTTPStatus
}
}
if request.Runtime.Retry.HTTPStatus == nil {
request.Runtime.Retry.HTTPStatus = defaultRetryHTTPStatus
}

return request, nil
}
Expand Down
2 changes: 1 addition & 1 deletion connector/internal/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var (
errRequestBodyTypeRequired = errors.New("failed to decode request body, empty body type")
)

var defaultRetryHTTPStatus = []int64{429, 500, 502, 503}
var defaultRetryHTTPStatus = []int{429, 500, 502, 503}

// RESTOptions represent execution options for REST requests
type RESTOptions struct {
Expand Down

0 comments on commit 9128520

Please sign in to comment.