mirror of https://github.com/restic/restic.git
Move chunkerBufSize to more appropiate location
This commit is contained in:
parent
9010d7bb3a
commit
0662c14fee
|
@ -12,7 +12,6 @@ import (
|
||||||
|
|
||||||
"github.com/juju/arrar"
|
"github.com/juju/arrar"
|
||||||
"github.com/restic/restic/backend"
|
"github.com/restic/restic/backend"
|
||||||
"github.com/restic/restic/chunker"
|
|
||||||
"github.com/restic/restic/debug"
|
"github.com/restic/restic/debug"
|
||||||
"github.com/restic/restic/pack"
|
"github.com/restic/restic/pack"
|
||||||
"github.com/restic/restic/pipe"
|
"github.com/restic/restic/pipe"
|
||||||
|
@ -23,8 +22,6 @@ const (
|
||||||
maxConcurrentBlobs = 32
|
maxConcurrentBlobs = 32
|
||||||
maxConcurrency = 10
|
maxConcurrency = 10
|
||||||
maxConcurrencyPreload = 20
|
maxConcurrencyPreload = 20
|
||||||
|
|
||||||
chunkerBufSize = 512 * chunker.KiB
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var archiverAbortOnAllErrors = func(str string, fi os.FileInfo, err error) error { return err }
|
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
|
max int
|
||||||
}
|
}
|
||||||
|
|
||||||
const maxCiphertextSize = crypto.Extension + chunker.MaxSize
|
const (
|
||||||
|
maxCiphertextSize = crypto.Extension + chunker.MaxSize
|
||||||
|
chunkerBufSize = 512 * chunker.KiB
|
||||||
|
)
|
||||||
|
|
||||||
func (s *poolStats) Get(k string) {
|
func (s *poolStats) Get(k string) {
|
||||||
s.m.Lock()
|
s.m.Lock()
|
||||||
|
|
Loading…
Reference in New Issue