Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9342845
D3715.id13095.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D3715.id13095.diff
View Options
diff --git a/swh/storage/in_memory.py b/swh/storage/in_memory.py
--- a/swh/storage/in_memory.py
+++ b/swh/storage/in_memory.py
@@ -264,30 +264,6 @@
)
yield from self.objstorage.content_get(contents)
- def content_get_range(
- self, start: bytes, end: bytes, limit: int = 1000
- ) -> Dict[str, Any]:
- if limit is None:
- raise StorageArgumentException("limit should not be None")
- sha1s = (
- (sha1, content_key)
- for sha1 in self._sorted_sha1s.iter_from(start)
- for content_key in self._content_indexes["sha1"][sha1]
- )
- matched: List[Dict[str, Any]] = []
- next_content = None
- for sha1, key in sha1s:
- if sha1 > end:
- break
- if len(matched) >= limit:
- next_content = sha1
- break
- matched.append(self._contents[key].to_dict())
- return {
- "contents": matched,
- "next": next_content,
- }
-
def content_get_partition(
self,
partition_id: int,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 3, 1:02 PM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3230027
Attached To
D3715: in_memory: Drop dead code
Event Timeline
Log In to Comment