diff --git a/vendor/manifest b/vendor/manifest index ad62891ce..caa0dfe31 100644 --- a/vendor/manifest +++ b/vendor/manifest @@ -58,8 +58,8 @@ { "importpath": "github.com/restic/chunker", "repository": "https://github.com/restic/chunker", - "revision": "49e9b5212b022a1ab373faf981ed4f2fc807502a", - "branch": "master" + "revision": "bb2ecf9a98e35a0b336ffc23fc515fb6e7961577", + "branch": "HEAD" }, { "importpath": "github.com/spf13/cobra", diff --git a/vendor/src/github.com/restic/chunker/chunker.go b/vendor/src/github.com/restic/chunker/chunker.go index 038985f3f..58e87ea6b 100644 --- a/vendor/src/github.com/restic/chunker/chunker.go +++ b/vendor/src/github.com/restic/chunker/chunker.go @@ -85,8 +85,7 @@ type Chunker struct { chunkerState } -// New returns a new Chunker based on polynomial p that reads from rd -// with bufsize and pass all data to hash along the way. +// New returns a new Chunker based on polynomial p that reads from rd. func New(rd io.Reader, pol Pol) *Chunker { c := &Chunker{ chunkerState: chunkerState{ @@ -141,8 +140,8 @@ func (c *Chunker) reset() { c.pre = c.MinSize - windowSize } -// Calculate out_table and mod_table for optimization. Must be called only -// once. This implementation uses a cache in the global variable cache. +// fillTables calculates out_table and mod_table for optimization. This +// implementation uses a cache in the global variable cache. func (c *Chunker) fillTables() { // if polynomial hasn't been specified, do not compute anything for now if c.pol == 0 {