Fix restic s3 backend for new minio-go version

This commit is contained in:
Alexander Neumann 2016-04-18 21:29:17 +02:00
parent 72fdd0bc09
commit 3f8da47a0c

View file

@ -16,7 +16,7 @@ const connLimit = 10
// s3 is a backend which stores the data on an S3 endpoint. // s3 is a backend which stores the data on an S3 endpoint.
type s3 struct { type s3 struct {
client minio.CloudStorageClient client *minio.Client
connChan chan struct{} connChan chan struct{}
bucketname string bucketname string
prefix string prefix string
@ -39,7 +39,7 @@ func Open(cfg Config) (backend.Backend, error) {
debug.Log("s3.Open", "BucketExists(%v) returned err %v, trying to create the bucket", cfg.Bucket, err) debug.Log("s3.Open", "BucketExists(%v) returned err %v, trying to create the bucket", cfg.Bucket, err)
// create new bucket with default ACL in default region // create new bucket with default ACL in default region
err = client.MakeBucket(cfg.Bucket, "", "") err = client.MakeBucket(cfg.Bucket, "")
if err != nil { if err != nil {
return nil, err return nil, err