From 9c853a799091ae35ef6a7d070ef1e6f648260e93 Mon Sep 17 00:00:00 2001 From: Max Holland Date: Fri, 22 Sep 2023 15:42:53 +0100 Subject: [PATCH] Remove staging from the hack We have the new feature now to set ttls so I'm removing in staging to verify it works properly --- core/uploader.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/uploader.go b/core/uploader.go index 02356ce..2d7b8b6 100644 --- a/core/uploader.go +++ b/core/uploader.go @@ -65,8 +65,7 @@ func Upload(input io.Reader, outputURI string, waitBetweenWrites, writeTimeout t // While we wait for storj to implement an easier method for global object deletion we are hacking something // here to allow us to have recording objects deleted after 7 days. var fields *drivers.FileProperties - if strings.Contains(outputURI, "gateway.storjshare.io/catalyst-recordings-monster") || - strings.Contains(outputURI, "gateway.storjshare.io/catalyst-recordings-com") { + if strings.Contains(outputURI, "gateway.storjshare.io/catalyst-recordings-com") { fields = &drivers.FileProperties{ Metadata: map[string]string{ "Object-Expires": "+168h", // Objects will be deleted after 7 days