diff options
author | n-peugnet <n.peugnet@free.fr> | 2021-08-28 20:54:34 +0200 |
---|---|---|
committer | n-peugnet <n.peugnet@free.fr> | 2021-08-28 20:54:34 +0200 |
commit | 2cd98a3bcd18870da4404693212119dd8ccfaf68 (patch) | |
tree | 9fb91f1d9bf6401b7d4bc3c2dcdfcb779d230e5a /sketch.go | |
parent | 129a86b3a6780b7aee5a7469cc5adeaf2ea6c20f (diff) | |
download | dna-backup-2cd98a3bcd18870da4404693212119dd8ccfaf68.tar.gz dna-backup-2cd98a3bcd18870da4404693212119dd8ccfaf68.zip |
refactor(chunks): use more interfaces
Diffstat (limited to 'sketch.go')
-rw-r--r-- | sketch.go | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -20,10 +20,7 @@ func SketchChunk(chunk Chunk, wSize int, sfCount int, fCount int) (Sketch, error superfeatures := make([]uint64, 0, sfCount) features := make([]uint64, 0, fCount) buff := make([]byte, fBytes*fCount) - r, err := chunk.Reader() - if err != nil { - return nil, err - } + r := chunk.Reader() hasher := rabinkarp64.New() for sf := 0; sf < sfCount; sf++ { features = features[:0] |