lib/scanner, vendor: Fix previous commit

Can't do what I did, as the rolling function is not the same as the
non-rolling one. Instead this uses an improved version of the rolling
adler32 to accomplish the same thing. (PR filed on upstream, so should
be able to use that directly in the future.)
This commit is contained in:
Jakob Borg
2017-01-18 11:57:01 +01:00
parent 9b1c592fb7
commit bd1c29ee32
4 changed files with 81 additions and 10 deletions

View File

@@ -9,9 +9,9 @@ package scanner
import (
"bytes"
"fmt"
"hash/adler32"
"io"
"github.com/chmduquesne/rollinghash/adler32"
"github.com/syncthing/syncthing/lib/protocol"
"github.com/syncthing/syncthing/lib/sha256"
)