From cb2cdcc561da0fa0dcf4f9bfbb49dea105e89c33 Mon Sep 17 00:00:00 2001 From: Josh Black Date: Thu, 7 Jul 2022 10:44:01 -0700 Subject: [PATCH] Bench GetUint64 should actually call GetUint64 --- bench/bench.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bench/bench.go b/bench/bench.go index 51156a5c7..ca73fe8e1 100644 --- a/bench/bench.go +++ b/bench/bench.go @@ -6,8 +6,9 @@ package raftbench // makes comparing backend performance easier by sharing the tests. import ( - "github.com/hashicorp/raft" "testing" + + "github.com/hashicorp/raft" ) func FirstIndex(b *testing.B, store raft.LogStore) { @@ -164,7 +165,7 @@ func GetUint64(b *testing.B, store raft.StableStore) { // Run GetUint64 a number of times for n := 0; n < b.N; n++ { - if _, err := store.Get([]byte{0x05}); err != nil { + if _, err := store.GetUint64([]byte{0x05}); err != nil { b.Fatalf("err: %s", err) } }