mirror of
https://github.com/octoleo/restic.git
synced 2024-11-26 06:46:34 +00:00
repo: Remove unused sync.Pool
This commit is contained in:
parent
3f6e11d26e
commit
d610c60991
@ -35,8 +35,6 @@ type packerManager struct {
|
|||||||
key *crypto.Key
|
key *crypto.Key
|
||||||
pm sync.Mutex
|
pm sync.Mutex
|
||||||
packers []*Packer
|
packers []*Packer
|
||||||
|
|
||||||
pool sync.Pool
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const minPackSize = 4 * 1024 * 1024
|
const minPackSize = 4 * 1024 * 1024
|
||||||
@ -49,11 +47,6 @@ func newPackerManager(be Saver, key *crypto.Key) *packerManager {
|
|||||||
return &packerManager{
|
return &packerManager{
|
||||||
be: be,
|
be: be,
|
||||||
key: key,
|
key: key,
|
||||||
pool: sync.Pool{
|
|
||||||
New: func() interface{} {
|
|
||||||
return make([]byte, (minPackSize+maxPackSize)/2)
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user