We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00f0f0b commit 5ebcc57Copy full SHA for 5ebcc57
nonebot_plugin_orm/__init__.py
@@ -120,7 +120,9 @@ def get_session(**local_kw: Any) -> sa_async.AsyncSession:
120
121
# NOTE: NoneBot DI will run sync function in thread pool executor,
122
# which is poor performance for this simple function, so we wrap it as a coroutine function.
123
-AsyncSession = Annotated[sa_async.AsyncSession, Depends(coroutine(get_session))]
+AsyncSession = Annotated[
124
+ sa_async.AsyncSession, Depends(coroutine(get_session), use_cache=False)
125
+]
126
127
128
def get_scoped_session() -> sa_async.async_scoped_session[sa_async.AsyncSession]:
0 commit comments