forked from phoenix/litellm-mirror
fix(proxy/utils.py): don't keep connecting to db if connection already established
This commit is contained in:
parent
f2da345173
commit
469ae0a378
2 changed files with 7 additions and 3 deletions
|
@ -1014,7 +1014,7 @@ async def startup_event():
|
|||
) # start the background health check coroutine.
|
||||
|
||||
print_verbose(f"prisma client - {prisma_client}")
|
||||
if prisma_client:
|
||||
if prisma_client is not None:
|
||||
await prisma_client.connect()
|
||||
|
||||
if prisma_client is not None and master_key is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue