diff --git a/archiver.go b/archiver.go index 02bef725e..f1d82b082 100644 --- a/archiver.go +++ b/archiver.go @@ -12,7 +12,6 @@ import ( "github.com/juju/arrar" "github.com/restic/restic/backend" - "github.com/restic/restic/chunker" "github.com/restic/restic/debug" "github.com/restic/restic/pack" "github.com/restic/restic/pipe" @@ -23,8 +22,6 @@ const ( maxConcurrentBlobs = 32 maxConcurrency = 10 maxConcurrencyPreload = 20 - - chunkerBufSize = 512 * chunker.KiB ) var archiverAbortOnAllErrors = func(str string, fi os.FileInfo, err error) error { return err } diff --git a/pools.go b/pools.go index 81f243a77..02a56d9eb 100644 --- a/pools.go +++ b/pools.go @@ -21,7 +21,10 @@ type poolStats struct { max int } -const maxCiphertextSize = crypto.Extension + chunker.MaxSize +const ( + maxCiphertextSize = crypto.Extension + chunker.MaxSize + chunkerBufSize = 512 * chunker.KiB +) func (s *poolStats) Get(k string) { s.m.Lock()