Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dantegarden committed Nov 26, 2024
1 parent 745a438 commit c00f724
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/bizy_server/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,10 @@
class APIClient:
def __init__(self):
self.error_handler = ErrorHandler()
self.session = None

async def get_session(self):
if self.session is None:
timeout = aiohttp.ClientTimeout(total=3)
self.session = aiohttp.ClientSession(timeout=timeout)
return self.session
timeout = aiohttp.ClientTimeout(total=30)
return aiohttp.ClientSession(timeout=timeout)

def auth_header(self):
try:
Expand Down

0 comments on commit c00f724

Please sign in to comment.