Commit f5c45f3a authored by Kevin Atkinson's avatar Kevin Atkinson

Make blocks.Block an interface.

License: MIT
Signed-off-by: default avatarKevin Atkinson <k@kevina.org>
parent 64cb0cf2
......@@ -39,10 +39,10 @@ func TestRabinChunking(t *testing.T) {
}
}
func chunkData(t *testing.T, data []byte) map[key.Key]*blocks.Block {
func chunkData(t *testing.T, data []byte) map[key.Key]blocks.Block {
r := NewRabin(bytes.NewReader(data), 1024*256)
blkmap := make(map[key.Key]*blocks.Block)
blkmap := make(map[key.Key]blocks.Block)
for {
blk, err := r.NextBytes()
......
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