fix: update usage of GetCachedStorageLocations

This commit is contained in:
Derrick Hammer 2024-03-03 09:33:21 -05:00
parent f4799e2b7d
commit f20b4ee916
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

@ -1388,7 +1388,7 @@ func (s *S5API) debugDownloadUrls(jc jape.Context) {
locations, err := node.Services().Storage().GetCachedStorageLocations(&decodedCid.Hash, []types.StorageLocationType{
types.StorageLocationTypeFull, types.StorageLocationTypeFile, types.StorageLocationTypeBridge,
})
}, true)
if err != nil {
s.sendErrorResponse(jc, NewS5Error(ErrKeyStorageOperationFailed, err, "Failed to get cached storage locations"))
return
@ -1663,7 +1663,7 @@ func (s *S5API) debugStorageLocations(jc jape.Context) {
return
}
locations, err := s.getNode().Services().Storage().GetCachedStorageLocations(decodedHash, typeIntList)
locations, err := s.getNode().Services().Storage().GetCachedStorageLocations(decodedHash, typeIntList, true)
if jc.Check("error getting cached locations", err) != nil {
return
}