remove 1s sleep from _ensure_session (runtime) (#3439)

This commit is contained in:
tobitege 2024-08-18 00:00:20 +02:00 committed by GitHub
parent 9cb0bf97c1
commit 944f934475
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -183,7 +183,6 @@ class EventStreamRuntime(Runtime):
raise e
async def _ensure_session(self):
await asyncio.sleep(1)
if self.session is None or self.session.closed:
self.session = aiohttp.ClientSession()
return self.session