Skip to content

Commit

Permalink
Refactor HTTP client
Browse files Browse the repository at this point in the history
  • Loading branch information
nfx committed Nov 24, 2023
1 parent fe6b768 commit 0b52c35
Show file tree
Hide file tree
Showing 15 changed files with 1,482 additions and 1,097 deletions.
2 changes: 1 addition & 1 deletion apierr/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func GenericIOError(ue *url.Error) *APIError {
}

// GetAPIError inspects HTTP errors from the Databricks API for known transient errors.
func GetAPIError(ctx context.Context, resp *http.Response, body io.ReadCloser) *APIError {
func GetAPIError(ctx context.Context, resp *http.Response, body io.ReadCloser) error {
if resp.StatusCode == 429 {
return TooManyRequests()
}
Expand Down
Loading

0 comments on commit 0b52c35

Please sign in to comment.