2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-02 03:42:31 +00:00

s3: Remove cache

This commit is contained in:
Alexander Neumann 2017-06-07 20:51:45 +02:00
parent f2a51aa37c
commit a46baf7685

View File

@ -8,7 +8,6 @@ import (
"path"
"restic"
"strings"
"sync"
"time"
"restic/backend"
@ -23,12 +22,10 @@ const connLimit = 10
// s3 is a backend which stores the data on an S3 endpoint.
type s3 struct {
client *minio.Client
sem *backend.Semaphore
bucketname string
prefix string
cacheMutex sync.RWMutex
cacheObjSize map[string]int64
client *minio.Client
sem *backend.Semaphore
bucketname string
prefix string
backend.Layout
}
@ -53,11 +50,10 @@ func Open(cfg Config) (restic.Backend, error) {
}
be := &s3{
client: client,
sem: sem,
bucketname: cfg.Bucket,
prefix: cfg.Prefix,
cacheObjSize: make(map[string]int64),
client: client,
sem: sem,
bucketname: cfg.Bucket,
prefix: cfg.Prefix,
}
client.SetCustomTransport(backend.Transport())