close PeerStore after benchmarks
This commit is contained in:
parent
94dc902b20
commit
d3f153c938
1 changed files with 5 additions and 0 deletions
|
@ -88,6 +88,11 @@ func runBenchmark(b *testing.B, ps PeerStore, parallel bool, sf setupFunc, ef ex
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
b.StopTimer()
|
b.StopTimer()
|
||||||
|
|
||||||
|
errChan := ps.Stop()
|
||||||
|
for err := range errChan {
|
||||||
|
b.Fatal(err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func Put(b *testing.B, ps PeerStore) {
|
func Put(b *testing.B, ps PeerStore) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue