From 99a6f3a2f61ea2cca869d581d0b770b8991beb5b Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 29 Feb 2024 10:16:16 -0500 Subject: [PATCH] fix: StorageLocationTypeFile/StorageLocationTypeFull expiry should be an hour --- protocols/s5/s5.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocols/s5/s5.go b/protocols/s5/s5.go index eacdf65..6881d56 100644 --- a/protocols/s5/s5.go +++ b/protocols/s5/s5.go @@ -274,7 +274,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.StorageLocationTypeFull), []string{generateDownloadUrl(hash, s.config, s.logger), generateProofUrl(hash, s.config, s.logger)}, calculateExpiry(24*time.Hour)), nil + return s5storage.NewStorageLocation(int(types.StorageLocationTypeFull), []string{generateDownloadUrl(hash, s.config, s.logger), generateProofUrl(hash, s.config, s.logger)}, calculateExpiry(1*time.Hour)), nil } }