Skip to content

Commit

Permalink
remove throttling from table get
Browse files Browse the repository at this point in the history
  • Loading branch information
afwillia committed Feb 27, 2024
1 parent fcfd7a7 commit 4bcfca9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions R/synapse_rest_api.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ synapse_get <- function(url = "https://repo-prod.prod.sagebase.org/repo/v1/entit
max_tries = 5,
is_transient = \(resp) httr2::resp_status(resp) %in% c(429, 500, 503, 403)
) |>
httr2::req_throttle(1/2) |>
httr2::req_headers(Authorization = sprintf("Bearer %s", auth)) |>
httr2::req_perform()
resp |> httr2::resp_body_json()
Expand Down Expand Up @@ -221,7 +220,6 @@ synapse_table_get <- function(id, async_token, auth) {
max_tries = 5,
is_transient = \(r) httr2::resp_status(r) %in% c(429, 500, 503, 202, 403)
) |>
httr2::req_throttle(1/2) |>
httr2::req_headers(Authorization = sprintf("Bearer %s", auth)) |>
httr2::req_perform()
httr2::resp_body_json(response)
Expand Down
2 changes: 0 additions & 2 deletions functions/synapse_rest_api.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ synapse_get <- function(url = "https://repo-prod.prod.sagebase.org/repo/v1/entit
max_tries = 5,
is_transient = \(resp) httr2::resp_status(resp) %in% c(429, 500, 503, 403)
) |>
httr2::req_throttle(1/2) |>
httr2::req_headers(Authorization = sprintf("Bearer %s", auth)) |>
httr2::req_perform()
resp |> httr2::resp_body_json()
Expand Down Expand Up @@ -221,7 +220,6 @@ synapse_table_get <- function(id, async_token, auth) {
max_tries = 5,
is_transient = \(r) httr2::resp_status(r) %in% c(429, 500, 503, 202, 403)
) |>
httr2::req_throttle(1/2) |>
httr2::req_headers(Authorization = sprintf("Bearer %s", auth)) |>
httr2::req_perform()
httr2::resp_body_json(response)
Expand Down

0 comments on commit 4bcfca9

Please sign in to comment.