Added drop
This commit is contained in:
@@ -68,3 +68,8 @@ class JsonDocStatusStorage(DocStatusStorage):
|
|||||||
for doc_id in doc_ids:
|
for doc_id in doc_ids:
|
||||||
self._data.pop(doc_id, None)
|
self._data.pop(doc_id, None)
|
||||||
await self.index_done_callback()
|
await self.index_done_callback()
|
||||||
|
|
||||||
|
async def drop(self) -> None:
|
||||||
|
"""Drop the storage"""
|
||||||
|
self._data.clear()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user