mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
fix(proxy_server.py): don't reconnect prisma if already connected
This commit is contained in:
parent
9673e6042e
commit
27e52794df
3 changed files with 16 additions and 3 deletions
|
@ -578,7 +578,8 @@ class PrismaClient:
|
|||
)
|
||||
async def connect(self):
|
||||
try:
|
||||
await self.db.connect()
|
||||
if self.db.is_connected() == False:
|
||||
await self.db.connect()
|
||||
except Exception as e:
|
||||
asyncio.create_task(
|
||||
self.proxy_logging_obj.failure_handler(original_exception=e)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue