Skip to content

Commit 43f723b

Browse files
committed
fixes for CR
1 parent 5736f4d commit 43f723b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

horizon/facts/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ def __init__(self):
2020
@property
2121
def client(self) -> AsyncClient:
2222
if self._client is None:
23+
env_api_key = get_env_api_key()
2324
self._client = AsyncClient(
2425
base_url=sidecar_config.CONTROL_PLANE,
25-
headers={"Authorization": f"Bearer {get_env_api_key()}"},
26+
headers={"Authorization": f"Bearer {env_api_key}"},
2627
)
2728
return self._client
2829

horizon/opal_relay_api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,9 @@ def _apply_context(self, context: dict[str, str]):
9696

9797
def api_session(self) -> ClientSession:
9898
if self._api_session is None:
99+
env_api_key = get_env_api_key()
99100
self._api_session = ClientSession(
100-
headers={"Authorization": f"Bearer {get_env_api_key()}"}
101+
headers={"Authorization": f"Bearer {env_api_key}"}
101102
)
102103
return self._api_session
103104

0 commit comments

Comments
 (0)