Move chunkerBufSize to more appropiate location

This commit is contained in:
Alexander Neumann 2015-05-01 17:40:50 +02:00
parent 9010d7bb3a
commit 0662c14fee
2 changed files with 4 additions and 4 deletions

View File

@ -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 }

View File

@ -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()