From b299a0eb57a7a021f6c1076c2876faa79459169f Mon Sep 17 00:00:00 2001 From: Max Holland Date: Mon, 25 Sep 2023 10:15:47 +0100 Subject: [PATCH] Remove staging from the hack (#34) 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