-
- Downloads
api, utils: Fetch content bytes from storage using all hash algorithms
When calling the content_get_data method from the storage interface, ensure to provide all content hashes as parameter to avoid an extra request on the storage server to fetch missing hashes. Factorize code a bit to reuse the lookup_content function instead of duplicating code.
parent
e124c6e0
No related branches found
No related tags found
Showing
- swh/web/api/views/content.py 4 additions, 4 deletionsswh/web/api/views/content.py
- swh/web/api/views/raw.py 10 additions, 13 deletionsswh/web/api/views/raw.py
- swh/web/browse/tests/views/test_content.py 2 additions, 2 deletionsswh/web/browse/tests/views/test_content.py
- swh/web/browse/utils.py 3 additions, 3 deletionsswh/web/browse/utils.py
- swh/web/utils/archive.py 38 additions, 46 deletionsswh/web/utils/archive.py
- swh/web/utils/tests/test_archive.py 9 additions, 17 deletionsswh/web/utils/tests/test_archive.py
Loading
Please register or sign in to comment