remove drops unused

This commit is contained in:
Yannick Stephan
2025-02-17 23:16:17 +01:00
parent 442838d0f1
commit 66c4b01fdd
7 changed files with 2 additions and 37 deletions

View File

@@ -117,11 +117,6 @@ class MongoKVStorage(BaseKVStorage):
# Mongo handles persistence automatically
pass
async def drop(self) -> None:
"""Drop the collection"""
await self._data.drop()
@final
@dataclass
class MongoDocStatusStorage(DocStatusStorage):
@@ -169,10 +164,6 @@ class MongoDocStatusStorage(DocStatusStorage):
)
await asyncio.gather(*update_tasks)
async def drop(self) -> None:
"""Drop the collection"""
await self._data.drop()
async def get_status_counts(self) -> dict[str, int]:
"""Get counts of documents in each status"""
pipeline = [{"$group": {"_id": "$status", "count": {"$sum": 1}}}]