2
2
mirror of https://github.com/octoleo/restic.git synced 2024-09-27 14:09:01 +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"
@ -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())