forked from TrueCloudLab/restic
Move chunkerBufSize to more appropiate location
This commit is contained in:
parent
9010d7bb3a
commit
0662c14fee
2 changed files with 4 additions and 4 deletions
|
@ -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 }
|
||||
|
|
5
pools.go
5
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()
|
||||
|
|
Loading…
Reference in a new issue