Skip to content
Snippets Groups Projects
Commit 252aa146 authored by vlorentz's avatar vlorentz
Browse files

cache: Remove unused method add_stream

The objstorage no longer implements it.
parent e4c9935c
No related branches found
No related tags found
No related merge requests found
......@@ -31,10 +31,6 @@ class VaultCache:
sid = self._get_internal_id(bundle_type, swhid)
return self.objstorage.delete(hashutil.hash_to_bytes(sid))
def add_stream(self, bundle_type, swhid: CoreSWHID, content_iter):
sid = self._get_internal_id(bundle_type, swhid)
return self.objstorage.add_stream(content_iter, sid)
def get_stream(self, bundle_type, swhid: CoreSWHID):
sid = self._get_internal_id(bundle_type, swhid)
return self.objstorage.get_stream(hashutil.hash_to_bytes(sid))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment