Skip to content

Commit

Permalink
fix(transform): Remove Temporary Files from AWS S3 (#205)
Browse files Browse the repository at this point in the history
* fix: Remove Temporary Files

* revert: file.Get
  • Loading branch information
jshlbrd committed Jul 17, 2024
1 parent 16baaa0 commit b52078d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions transform/send_aws_s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ func (tf *sendAWSS3) send(ctx context.Context, key string) error {
if err != nil {
return err
}
defer os.Remove(temp.Name())
defer temp.Close()

data, err := withTransforms(ctx, tf.tforms, tf.agg.Get(key))
Expand Down

0 comments on commit b52078d

Please sign in to comment.