From f20b4ee9163867a8cd13407c7062772b948fe706 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 3 Mar 2024 09:33:21 -0500 Subject: [PATCH] fix: update usage of GetCachedStorageLocations --- api/s5/s5.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/s5/s5.go b/api/s5/s5.go index 23881ce..dc5185a 100644 --- a/api/s5/s5.go +++ b/api/s5/s5.go @@ -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 }