mirror of https://github.com/restic/restic.git
Unexport NewPackerManager
This commit is contained in:
parent
1e1368eea3
commit
18c3024171
|
@ -32,9 +32,9 @@ const minPackSize = 4 * 1024 * 1024
|
|||
const maxPackSize = 16 * 1024 * 1024
|
||||
const maxPackers = 200
|
||||
|
||||
// NewPackerManager returns an new packer manager which writes temporary files
|
||||
// newPackerManager returns an new packer manager which writes temporary files
|
||||
// to a temporary directory
|
||||
func NewPackerManager(be Saver, key *crypto.Key) *packerManager {
|
||||
func newPackerManager(be Saver, key *crypto.Key) *packerManager {
|
||||
return &packerManager{
|
||||
be: be,
|
||||
key: key,
|
||||
|
|
|
@ -145,7 +145,7 @@ func TestPackerManager(t *testing.T) {
|
|||
rnd := newRandReader(rand.NewSource(23))
|
||||
|
||||
be := mem.New()
|
||||
pm := NewPackerManager(be, crypto.NewRandomKey())
|
||||
pm := newPackerManager(be, crypto.NewRandomKey())
|
||||
|
||||
blobBuf := make([]byte, maxBlobSize)
|
||||
|
||||
|
@ -159,7 +159,7 @@ func BenchmarkPackerManager(t *testing.B) {
|
|||
rnd := newRandReader(rand.NewSource(23))
|
||||
|
||||
be := &fakeBackend{}
|
||||
pm := NewPackerManager(be, crypto.NewRandomKey())
|
||||
pm := newPackerManager(be, crypto.NewRandomKey())
|
||||
blobBuf := make([]byte, maxBlobSize)
|
||||
|
||||
t.ResetTimer()
|
||||
|
|
|
@ -31,7 +31,7 @@ func New(be backend.Backend) *Repository {
|
|||
repo := &Repository{
|
||||
be: be,
|
||||
idx: NewMasterIndex(),
|
||||
packerManager: NewPackerManager(be, nil),
|
||||
packerManager: newPackerManager(be, nil),
|
||||
}
|
||||
|
||||
return repo
|
||||
|
|
Loading…
Reference in New Issue