File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ package main
22
33import (
44 "bytes"
5- "context"
65 "encoding/csv"
76 "flag"
87 "fmt"
@@ -78,10 +77,6 @@ func main() {
7877 // from assumed role.
7978 svc := s3 .New (sess , & aws.Config {Credentials : creds })
8079
81- // Create a context with a timeout that will abort the upload if it takes
82- // more than the passed in timeout.
83- ctx := context .Background ()
84-
8580 // Set up imagemagick
8681 imagick .Initialize ()
8782 defer imagick .Terminate ()
@@ -162,7 +157,7 @@ func main() {
162157
163158 // Uploads the object to S3. The Context will interrupt the request if the
164159 // timeout expires.
165- _ , err = svc .PutObjectWithContext ( ctx , & s3.PutObjectInput {
160+ _ , err = svc .PutObject ( & s3.PutObjectInput {
166161 Bucket : aws .String (s3Bucket ),
167162 Key : aws .String (s3Key ),
168163 Body : outputFile ,
You can’t perform that action at this time.
0 commit comments