This commit is contained in:
Zach Ramsay 2018-01-29 16:02:04 +00:00 committed by Emmanuel Odeke
parent 2023115ff8
commit e8d0960cef
1 changed files with 1 additions and 1 deletions

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)
searchFn := mp.GetByHeight
if algo == binarySearch {
if algo == binarySearch { // nolint
searchFn = mp.(interface {
GetByHeightBinarySearch(h int64) (lite.FullCommit, error)
}).GetByHeightBinarySearch