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
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ const connLimit = 10
// s3 is a backend which stores the data on an S3 endpoint.
type s3 struct {
client minio.CloudStorageClient
client *minio.Client
connChan chan struct{}
bucketname 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)
// create new bucket with default ACL in default region
err = client.MakeBucket(cfg.Bucket, "", "")
err = client.MakeBucket(cfg.Bucket, "")
if err != nil {
return nil, err