断点库模块去掉没用上的 kind();test-postgres.sh 的注释照现在的连接池写法改

This commit is contained in:
ThearchyHelios
2026-10-19 10:27:17 +08:00
parent b9cfc243e2
commit 5e6ba12678
2 changed files with 3 additions and 8 deletions
-5
View File
@@ -72,11 +72,6 @@ def open_saver() -> contextlib.AbstractAsyncContextManager[BaseCheckpointSaver]:
return open_sqlite_saver(settings.checkpoint_path)
def kind() -> str:
""""sqlite" 或 "postgresql":断点库放在哪种库里。"""
return "postgresql" if settings.checkpoint_conninfo else "sqlite"
async def count(saver: Any, thread_id: str | None = None) -> tuple[int, int]:
"""(断点条数, pending writes 条数)。thread_id 为空数全部。copy-to-postgres 核对用,走公开接口。"""
config = {"configurable": {"thread_id": thread_id}} if thread_id else None