Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Co <[email protected]>
  • Loading branch information
onimsha committed Apr 20, 2024
1 parent f37193d commit 15b0c11
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions backend/danswer/db/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ def get_sqlalchemy_engine() -> Engine:
global _SYNC_ENGINE
if _SYNC_ENGINE is None:
connection_string = build_connection_string(db_api=SYNC_DB_API)
_SYNC_ENGINE = create_engine(connection_string, pool_size=50, max_overflow=25, connect_args=connect_args)
_SYNC_ENGINE = create_engine(
connection_string, pool_size=50, max_overflow=25, connect_args=connect_args
)
return _SYNC_ENGINE


Expand All @@ -69,7 +71,9 @@ def get_sqlalchemy_async_engine() -> AsyncEngine:
global _ASYNC_ENGINE
if _ASYNC_ENGINE is None:
connection_string = build_connection_string()
_ASYNC_ENGINE = create_async_engine(connection_string, connect_args=connect_args)
_ASYNC_ENGINE = create_async_engine(
connection_string, connect_args=connect_args
)
return _ASYNC_ENGINE


Expand Down

0 comments on commit 15b0c11

Please sign in to comment.