Skip to content
Snippets Groups Projects
Commit 6436f0bb authored by Nicolas Dandrimont's avatar Nicolas Dandrimont
Browse files

cache: Drop unused method get_stream

This would be more usefully implemented by generating a (temporary) URL
for direct download of vault bundles from the azure bucket.
parent da9203fc
No related branches found
No related tags found
1 merge request!152cache: Drop unused method get_stream
......@@ -31,10 +31,6 @@ class VaultCache:
sid = self._get_internal_id(bundle_type, swhid)
return self.objstorage.delete(hashutil.hash_to_bytes(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))
def is_cached(self, bundle_type, swhid: CoreSWHID):
sid = self._get_internal_id(bundle_type, swhid)
return hashutil.hash_to_bytes(sid) in self.objstorage
......
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