From 0662c14fee6caa96eae03985d7babaff3ff273eb Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Fri, 1 May 2015 17:40:50 +0200 Subject: [PATCH] Move chunkerBufSize to more appropiate location --- archiver.go | 3 --- pools.go | 5 ++++- 2 files changed, 4 insertions(+), 4 deletions(-) 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()