From 6436f0bb3a62850fcfd7353c7d8e36767a84e265 Mon Sep 17 00:00:00 2001 From: Nicolas Dandrimont <nicolas@dandrimont.eu> Date: Tue, 21 Jun 2022 17:51:03 +0200 Subject: [PATCH] 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. --- swh/vault/cache.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/swh/vault/cache.py b/swh/vault/cache.py index 5599c29..5717d40 100644 --- a/swh/vault/cache.py +++ b/swh/vault/cache.py @@ -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 -- GitLab