Skip to content

Commit

Permalink
Fix MongoKeyValueStore.remove() (#2582)
Browse files Browse the repository at this point in the history
  • Loading branch information
yifanmai authored Jun 21, 2024
1 parent 3d1a817 commit 68cbaed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/helm/common/mongo_key_value_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,5 @@ def multi_put(self, pairs: Iterable[Tuple[Dict, Dict]]) -> None:
self._collection.bulk_write(operations)

def remove(self, key: Dict) -> None:
self._collection.delete_one(key)
query = {self._REQUEST_KEY: self._canonicalize_key(key)}
self._collection.delete_one(query)

0 comments on commit 68cbaed

Please sign in to comment.