Skip to content

Commit

Permalink
add timeout config to authorized users
Browse files Browse the repository at this point in the history
  • Loading branch information
omer9564 committed May 5, 2024
1 parent 1f141f1 commit dd673fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion permit/enforcement/enforcer.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ async def authorized_users(
context=query_context,
)

async with aiohttp.ClientSession(headers=self._headers) as session:
async with aiohttp.ClientSession(
headers=self._headers, **self._timeout_config
) as session:
check_url = f"{self._base_url}/authorized_users"
try:
async with session.post(
Expand Down

0 comments on commit dd673fd

Please sign in to comment.