From 47020fe73872e71071c0cc33be67c7b688b031f1 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 24 Jan 2024 16:43:17 -0500 Subject: [PATCH] fix: create StorageLocationTypeFull on StorageLocationTypeFull case --- protocols/s5.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocols/s5.go b/protocols/s5.go index cb88e10..cd01811 100644 --- a/protocols/s5.go +++ b/protocols/s5.go @@ -139,7 +139,7 @@ func (s S5ProviderStore) Provide(hash *encoding.Multihash, kind []types.StorageL case types.StorageLocationTypeArchive: return s5storage.NewStorageLocation(int(types.StorageLocationTypeArchive), []string{}, calculateExpiry(24*time.Hour)), nil case types.StorageLocationTypeFile, types.StorageLocationTypeFull: - return s5storage.NewStorageLocation(int(types.StorageLocationTypeArchive), []string{generateDownloadUrl(hash, s.proto.portal)}, calculateExpiry(24*time.Hour)), nil + return s5storage.NewStorageLocation(int(types.StorageLocationTypeFull), []string{generateDownloadUrl(hash, s.proto.portal)}, calculateExpiry(24*time.Hour)), nil } }