Browse Source

nolint

pull/1043/head
Zach Ramsay 7 years ago
committed by Emmanuel Odeke
parent
commit
e8d0960cef
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lite/performance_test.go

+ 1
- 1
lite/performance_test.go View File

@ -198,7 +198,7 @@ func benchmarkMemStoreProviderGetByHeight(b *testing.B, fcs []lite.FullCommit, f
qHeights = append(qHeights, 19, -100, -10000, 1e7, -17, 31, -1e9) qHeights = append(qHeights, 19, -100, -10000, 1e7, -17, 31, -1e9)
searchFn := mp.GetByHeight searchFn := mp.GetByHeight
if algo == binarySearch {
if algo == binarySearch { // nolint
searchFn = mp.(interface { searchFn = mp.(interface {
GetByHeightBinarySearch(h int64) (lite.FullCommit, error) GetByHeightBinarySearch(h int64) (lite.FullCommit, error)
}).GetByHeightBinarySearch }).GetByHeightBinarySearch


Loading…
Cancel
Save