Skip to content

Commit

Permalink
fix should_retry_fetch?() method signature
Browse files Browse the repository at this point in the history
  • Loading branch information
tyiuhc committed Jan 24, 2024
1 parent e822236 commit 5827245
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/experiment/remote/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ def add_context(user)
user
end

def should_retry_fetch?(e)
return e.status_code < 400 || e.status_code >= 500 || e.status_code == 429 if e.is_a?(FetchError)
def should_retry_fetch?(err)
return err.status_code < 400 || err.status_code >= 500 || err.status_code == 429 if err.is_a?(FetchError)

true
end
Expand Down

0 comments on commit 5827245

Please sign in to comment.