Use default branching parameter

This commit is contained in:
Daniel A. Nagy 2015-02-03 15:37:17 +01:00
parent bcbaada9b8
commit 321bb8b49e

View file

@ -24,9 +24,7 @@ func main() {
stat, _ := f.Stat()
sr := io.NewSectionReader(f, 0, stat.Size())
chunker := &bzz.TreeChunker{
Branches: 128,
}
chunker := &bzz.TreeChunker{}
chunker.Init()
hash := make([]byte, chunker.HashSize())
errC := chunker.Split(hash, sr, nil)