Skip to content

Commit

Permalink
Remove staging from the hack (#34)
Browse files Browse the repository at this point in the history
We have the new feature now to set ttls so I'm removing in staging to verify it works properly
  • Loading branch information
mjh1 authored Sep 25, 2023
1 parent 0339ced commit b299a0e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/uploader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b299a0e

Please sign in to comment.