Added drop

This commit is contained in:
Saifeddine ALOUI 2025-02-18 10:22:16 +01:00 committed by GitHub
parent a15d164d87
commit 20909e495b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -68,3 +68,8 @@ class JsonDocStatusStorage(DocStatusStorage):
for doc_id in doc_ids:
self._data.pop(doc_id, None)
await self.index_done_callback()
async def drop(self) -> None:
"""Drop the storage"""
self._data.clear()