forked from TrueCloudLab/restic
s3: Remove cache
This commit is contained in:
parent
f2a51aa37c
commit
a46baf7685
1 changed files with 8 additions and 12 deletions
|
@ -8,7 +8,6 @@ import (
|
|||
"path"
|
||||
"restic"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"restic/backend"
|
||||
|
@ -27,8 +26,6 @@ type s3 struct {
|
|||
sem *backend.Semaphore
|
||||
bucketname string
|
||||
prefix string
|
||||
cacheMutex sync.RWMutex
|
||||
cacheObjSize map[string]int64
|
||||
backend.Layout
|
||||
}
|
||||
|
||||
|
@ -57,7 +54,6 @@ func Open(cfg Config) (restic.Backend, error) {
|
|||
sem: sem,
|
||||
bucketname: cfg.Bucket,
|
||||
prefix: cfg.Prefix,
|
||||
cacheObjSize: make(map[string]int64),
|
||||
}
|
||||
|
||||
client.SetCustomTransport(backend.Transport())
|
||||
|
|
Loading…
Reference in a new issue