mirror of
https://github.com/restic/restic.git
synced 2025-08-23 13:08:08 +00:00
chunker: Further cleanup
This commit is contained in:
@@ -86,8 +86,7 @@ type Chunker struct {
|
||||
}
|
||||
|
||||
// New returns a new Chunker based on polynomial p that reads from rd
|
||||
// with bufsize and pass all data to hash along the way, using buf for
|
||||
// buffering.
|
||||
// with bufsize and pass all data to hash along the way.
|
||||
func New(rd io.Reader, pol Pol, h hash.Hash) *Chunker {
|
||||
c := &Chunker{
|
||||
buf: bufPool.Get().([]byte),
|
||||
|
Reference in New Issue
Block a user