aboutsummaryrefslogtreecommitdiff
path: root/sketch.go
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-08-28 20:54:34 +0200
committern-peugnet <n.peugnet@free.fr>2021-08-28 20:54:34 +0200
commit2cd98a3bcd18870da4404693212119dd8ccfaf68 (patch)
tree9fb91f1d9bf6401b7d4bc3c2dcdfcb779d230e5a /sketch.go
parent129a86b3a6780b7aee5a7469cc5adeaf2ea6c20f (diff)
downloaddna-backup-2cd98a3bcd18870da4404693212119dd8ccfaf68.tar.gz
dna-backup-2cd98a3bcd18870da4404693212119dd8ccfaf68.zip
refactor(chunks): use more interfaces
Diffstat (limited to 'sketch.go')
-rw-r--r--sketch.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/sketch.go b/sketch.go
index f226661..db7e4e6 100644
--- a/sketch.go
+++ b/sketch.go
@@ -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]