Commit ca37d6f1 authored by Jeromy's avatar Jeromy

use rabin fingerprinting for a chunker

License: MIT
Signed-off-by: default avatarJeromy <jeromyj@gmail.com>

implement rabin fingerprinting as a chunker for ipfs

License: MIT
Signed-off-by: default avatarJeromy <jeromyj@gmail.com>

vendor correctly

License: MIT
Signed-off-by: default avatarJeromy <jeromyj@gmail.com>

refactor chunking interface a little

License: MIT
Signed-off-by: default avatarJeromy <jeromyj@gmail.com>

work chunking interface changes up into importer

License: MIT
Signed-off-by: default avatarJeromy <jeromyj@gmail.com>

move chunker type parsing into its own file in chunk

License: MIT
Signed-off-by: default avatarJeromy <jeromyj@gmail.com>
parent d28e7cb7
...@@ -163,9 +163,9 @@ func runBatchFetchTest(t *testing.T, read io.Reader) { ...@@ -163,9 +163,9 @@ func runBatchFetchTest(t *testing.T, read io.Reader) {
dagservs = append(dagservs, NewDAGService(bsi)) dagservs = append(dagservs, NewDAGService(bsi))
} }
spl := &chunk.SizeSplitter{512} spl := chunk.NewSizeSplitter(read, 512)
root, err := imp.BuildDagFromReader(read, dagservs[0], spl, nil) root, err := imp.BuildDagFromReader(dagservs[0], spl, nil)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment