Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
mamantoha committed Dec 4, 2024
1 parent 192c906 commit 9010b24
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib/gitlab/api.cr
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ module Gitlab
end

def make_request(url : String, params = {} of String => String)
Retriable.retry(on: {Crest::InternalServerError, Crest::ServiceUnavailable, Crest::BadGateway, Socket::ConnectError}) do
Retriable.retry(on: {
Crest::InternalServerError,
Crest::ServiceUnavailable,
Crest::BadGateway,
Socket::ConnectError,
}) do
client[url].get(params: params)
end
ensure
Expand Down

0 comments on commit 9010b24

Please sign in to comment.