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"
|
"path"
|
||||||
"restic"
|
"restic"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"restic/backend"
|
"restic/backend"
|
||||||
|
@ -27,8 +26,6 @@ type s3 struct {
|
||||||
sem *backend.Semaphore
|
sem *backend.Semaphore
|
||||||
bucketname string
|
bucketname string
|
||||||
prefix string
|
prefix string
|
||||||
cacheMutex sync.RWMutex
|
|
||||||
cacheObjSize map[string]int64
|
|
||||||
backend.Layout
|
backend.Layout
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -57,7 +54,6 @@ func Open(cfg Config) (restic.Backend, error) {
|
||||||
sem: sem,
|
sem: sem,
|
||||||
bucketname: cfg.Bucket,
|
bucketname: cfg.Bucket,
|
||||||
prefix: cfg.Prefix,
|
prefix: cfg.Prefix,
|
||||||
cacheObjSize: make(map[string]int64),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
client.SetCustomTransport(backend.Transport())
|
client.SetCustomTransport(backend.Transport())
|
||||||
|
|
Loading…
Reference in a new issue