summaryrefslogtreecommitdiff
path: root/odb_test.go
diff options
context:
space:
mode:
authorlhchavez <[email protected]>2020-12-01 19:11:41 -0800
committerlhchavez <[email protected]>2021-09-05 18:52:01 -0700
commit5def02a589a2c1653f4bb515fdec290361a222be (patch)
treeb99d3a8204c27c902f711bc4f8f8b48baa8352bb /odb_test.go
parent70e5e419cf0cab31553b106267a0296f3cd672d9 (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 'odb_test.go')
-rw-r--r--odb_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/odb_test.go b/odb_test.go
index ed5c24c..2684851 100644
--- a/odb_test.go
+++ b/odb_test.go
@@ -167,9 +167,9 @@ func TestOdbWritepack(t *testing.T) {
checkFatal(t, err)
var finalStats TransferProgress
- writepack, err := odb.NewWritePack(func(stats TransferProgress) ErrorCode {
+ writepack, err := odb.NewWritePack(func(stats TransferProgress) error {
finalStats = stats
- return ErrorCodeOK
+ return nil
})
checkFatal(t, err)
defer writepack.Free()