some fixes from review
This commit is contained in:
parent
b284d39e05
commit
bfecb5a135
|
@ -1,6 +1,6 @@
|
|||
# Changelog
|
||||
|
||||
## 0.10.1 (TBD)
|
||||
## 0.10.1 (June 28, 2017)
|
||||
|
||||
FEATURES:
|
||||
- Use `--trace` to get stack traces for logged errors
|
||||
|
|
|
@ -49,7 +49,7 @@ import:
|
|||
- package: google.golang.org/grpc
|
||||
testImport:
|
||||
- package: github.com/tendermint/merkleeyes
|
||||
version: develop
|
||||
version: v0.2.4
|
||||
subpackages:
|
||||
- app
|
||||
- iavl
|
||||
|
|
|
@ -45,14 +45,17 @@ func benchmarkTxIndex(txsCount int, b *testing.B) {
|
|||
|
||||
batch := txindex.NewBatch(txsCount)
|
||||
for i := 0; i < txsCount; i++ {
|
||||
txResult.Index += 1
|
||||
batch.Add(*txResult)
|
||||
txResult.Index += 1
|
||||
}
|
||||
|
||||
b.ResetTimer()
|
||||
|
||||
for n := 0; n < b.N; n++ {
|
||||
_ = indexer.AddBatch(batch)
|
||||
err = indexer.AddBatch(batch)
|
||||
}
|
||||
if err != nil {
|
||||
b.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue