mirror of
https://github.com/sot-tech/mochi.git
synced 2026-06-13 08:13:32 -07:00
close PeerStore after benchmarks
This commit is contained in:
committed by
Jimmy Zelinskie
parent
94dc902b20
commit
d3f153c938
@@ -88,6 +88,11 @@ func runBenchmark(b *testing.B, ps PeerStore, parallel bool, sf setupFunc, ef ex
|
||||
}
|
||||
}
|
||||
b.StopTimer()
|
||||
|
||||
errChan := ps.Stop()
|
||||
for err := range errChan {
|
||||
b.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
func Put(b *testing.B, ps PeerStore) {
|
||||
|
||||
Reference in New Issue
Block a user