Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
iFrostizz committed Apr 26, 2024
1 parent 86ca814 commit 40774f3
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions merkle/merkle_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
package merkle

import (
"testing"

"context"
"crypto/rand"
"strconv"
"testing"

"github.com/ava-labs/avalanchego/ids"
"github.com/ava-labs/avalanchego/trace"
Expand All @@ -14,9 +13,11 @@ import (
"github.com/stretchr/testify/require"
)

var resRoot ids.ID
var resDb merkledb.MerkleDB
var resErr error
var (
resRoot ids.ID
resDB merkledb.MerkleDB
resErr error
)

func BenchmarkMerkleTxRoot(b *testing.B) {
for _, size := range []int{10, 100, 1000, 10000} {
Expand Down Expand Up @@ -52,7 +53,7 @@ func BenchmarkMerkleTxRoot(b *testing.B) {

// avoid compiler optimizations to cancel out the bench
resRoot = root
resDb = db
resDB = db
resErr = err
}

Expand Down

0 comments on commit 40774f3

Please sign in to comment.