Skip to content

Commit 6b95d96

Browse files
author
Nick Bragdon
committed
Changing up thee naming + backoff factor
1 parent e774c42 commit 6b95d96

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
from requests.adapters import HTTPAdapter, Retry
55

66

7-
def fhirRequest(bb, config):
7+
def fhir_request(bb, config):
88
auth_token = config["auth_token"]
99
new_auth_token = handle_expired(bb, auth_token)
1010

1111
if new_auth_token is not None:
1212
auth_token = new_auth_token
1313

1414
retry_config = Retry(
15-
total=3, backoff_factor=0.2, status_forcelist=[500, 502, 503, 504]
15+
total=3, backoff_factor=5, status_forcelist=[500, 502, 503, 504]
1616
)
1717
full_url = bb["base_url"] + "/v" + bb["version"] + config["url"]
1818
headers = {"Authorization": "Bearer " + auth_token["access_token"]}

0 commit comments

Comments
 (0)