Skip to content

Commit

Permalink
Remove expires tag from s3 upload
Browse files Browse the repository at this point in the history
Signed-off-by: Alvin Feng <[email protected]>
  • Loading branch information
nivlaaa committed Mar 17, 2017
1 parent 08b06dc commit 45bb7c9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions registry/storage/driver/s3-aws/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -701,15 +701,11 @@ func (d *driver) copy(ctx context.Context, sourcePath string, destPath string) e
return nil
}

// Even in the worst case, a multipart copy should take no more
// than a few minutes, so 30 minutes is very conservative.
expires := time.Now().Add(time.Duration(30) * time.Minute)
createResp, err := d.S3.CreateMultipartUpload(&s3.CreateMultipartUploadInput{
Bucket: aws.String(d.Bucket),
Key: aws.String(d.s3Path(destPath)),
ContentType: d.getContentType(),
ACL: d.getACL(),
Expires: aws.Time(expires),
SSEKMSKeyId: d.getSSEKMSKeyID(),
ServerSideEncryption: d.getEncryptionMode(),
StorageClass: d.getStorageClass(),
Expand Down

0 comments on commit 45bb7c9

Please sign in to comment.