lib/model, lib/weakhash: Abort pulling quicker on folder stop (ref #5028)
This commit is contained in:
committed by
Audrius Butkevicius
parent
5bb72dfe5d
commit
0f0290d574
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user