diff options
| author | lhchavez <[email protected]> | 2020-12-01 19:11:41 -0800 |
|---|---|---|
| committer | lhchavez <[email protected]> | 2021-09-05 18:52:01 -0700 |
| commit | 5def02a589a2c1653f4bb515fdec290361a222be (patch) | |
| tree | b99d3a8204c27c902f711bc4f8f8b48baa8352bb /indexer_test.go | |
| parent | 70e5e419cf0cab31553b106267a0296f3cd672d9 (diff) | |
The big Callback type adjustment of 2020
This change makes all callbacks that can fail return an `error`. This
makes things a lot more idiomatic.
Diffstat (limited to 'indexer_test.go')
| -rw-r--r-- | indexer_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indexer_test.go b/indexer_test.go index 70b9f76..1566f97 100644 --- a/indexer_test.go +++ b/indexer_test.go @@ -33,9 +33,9 @@ func TestIndexerOutOfOrder(t *testing.T) { defer os.RemoveAll(tmpPath) var finalStats TransferProgress - idx, err := NewIndexer(tmpPath, nil, func(stats TransferProgress) ErrorCode { + idx, err := NewIndexer(tmpPath, nil, func(stats TransferProgress) error { finalStats = stats - return ErrorCodeOK + return nil }) checkFatal(t, err) defer idx.Free() |
