lib/model, lib/weakhash: Abort pulling quicker on folder stop (ref #5028)

This commit is contained in:
Simon Frei
2018-07-04 09:07:33 +02:00
committed by Audrius Butkevicius
parent 5bb72dfe5d
commit 0f0290d574
6 changed files with 118 additions and 39 deletions

View File

@@ -11,6 +11,7 @@ package weakhash
import (
"bytes"
"context"
"io"
"io/ioutil"
"os"
@@ -36,7 +37,7 @@ func TestFinder(t *testing.T) {
}
hashes := []uint32{65143183, 65798547}
finder, err := NewFinder(f, 4, hashes)
finder, err := NewFinder(context.Background(), f, 4, hashes)
if err != nil {
t.Error(err)
}