Skip to content

Commit a432982

Browse files
committed
format code
1 parent 7a114a6 commit a432982

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

backend/app/app/db/session.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
if settings.MODE == ModeEnum.testing
3737
else AsyncAdaptedQueuePool, # Asincio pytest works with NullPool
3838
# pool_size=POOL_SIZE,
39-
# max_overflow=64,
39+
# max_overflow=64,
4040
)
4141

4242
SessionLocalCelery = sessionmaker(

backend/app/app/main.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,12 @@ async def lifespan(app: FastAPI):
117117
db_url=str(settings.ASYNC_DATABASE_URI),
118118
engine_args={
119119
"echo": False,
120-
"poolclass": NullPool if settings.MODE == ModeEnum.testing else AsyncAdaptedQueuePool
120+
"poolclass": NullPool
121+
if settings.MODE == ModeEnum.testing
122+
else AsyncAdaptedQueuePool
121123
# "pool_pre_ping": True,
122124
# "pool_size": settings.POOL_SIZE,
123-
# "max_overflow": 64,
125+
# "max_overflow": 64,
124126
},
125127
)
126128
app.add_middleware(GlobalsMiddleware)

0 commit comments

Comments
 (0)