fix: StorageLocationTypeFile/StorageLocationTypeFull expiry should be an hour
This commit is contained in:
parent
e32a9b2070
commit
99a6f3a2f6
|
@ -274,7 +274,7 @@ func (s S5ProviderStore) Provide(hash *encoding.Multihash, kind []types.StorageL
|
||||||
case types.StorageLocationTypeArchive:
|
case types.StorageLocationTypeArchive:
|
||||||
return s5storage.NewStorageLocation(int(types.StorageLocationTypeArchive), []string{}, calculateExpiry(24*time.Hour)), nil
|
return s5storage.NewStorageLocation(int(types.StorageLocationTypeArchive), []string{}, calculateExpiry(24*time.Hour)), nil
|
||||||
case types.StorageLocationTypeFile, types.StorageLocationTypeFull:
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue