Merge pull request #794 from St1veLiu/main

Update json_kv_impl.py
This commit is contained in:
zrguo 2025-02-16 19:51:43 +08:00 committed by GitHub
commit 517ceb16fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -47,3 +47,8 @@ class JsonKVStorage(BaseKVStorage):
async def drop(self) -> None:
self._data = {}
async def delete(self, ids: list[str]) -> None:
for doc_id in ids:
self._data.pop(doc_id, None)
await self.index_done_callback()