Skip to content

Commit

Permalink
reduce retry for some req calls
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksiri committed Dec 31, 2023
1 parent f0acd08 commit 490fd81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/uplink/clients/instellar/installation.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule Uplink.Clients.Instellar.Installation do
"#{instellar_installation_id}"
]
|> Path.join()
|> Req.get(headers: Instellar.headers(deployment.hash))
|> Req.get(headers: Instellar.headers(deployment.hash), max_retries: 1)
|> case do
{:ok, %{status: 200, body: %{"data" => %{"attributes" => attributes}}}} ->
{:ok, attributes}
Expand Down
2 changes: 1 addition & 1 deletion lib/uplink/clients/instellar/self.ex
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ defmodule Uplink.Clients.Instellar.Self do

[Clients.Instellar.endpoint(), "self"]
|> Path.join()
|> Req.get(headers: headers())
|> Req.get(headers: headers(), max_retries: 1)
|> case do
{:ok, %{status: 200, body: %{"data" => %{"attributes" => attributes}}}} ->
if cache do
Expand Down

0 comments on commit 490fd81

Please sign in to comment.