Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kocubinski committed Dec 11, 2024
1 parent a9f1534 commit 9b504b8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
5 changes: 2 additions & 3 deletions tools/benchmark/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ import (
"syscall"
"time"

"github.com/spf13/cobra"

modulev1 "cosmossdk.io/api/cosmos/benchmark/module/v1"
"cosmossdk.io/tools/benchmark"
gen "cosmossdk.io/tools/benchmark/generator"

"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
clienttx "github.com/cosmos/cosmos-sdk/client/tx"
"github.com/spf13/cobra"
)

func NewTxCmd(params *modulev1.GeneratorParams) *cobra.Command {
Expand Down Expand Up @@ -109,7 +110,6 @@ func NewLoadTestCmd(params *modulev1.GeneratorParams) *cobra.Command {
}
}()

i := 0
begin := time.Now()
ops := make([]*benchmark.Op, numOps)
for {
Expand Down Expand Up @@ -170,7 +170,6 @@ func NewLoadTestCmd(params *modulev1.GeneratorParams) *cobra.Command {
accSeq++
successCount++
}
i++
if pause > 0 {
time.Sleep(time.Duration(pause) * time.Millisecond)
}
Expand Down
9 changes: 5 additions & 4 deletions tools/benchmark/module/depinject.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@ package module
import (
"unsafe"

Check notice

Code scanning / CodeQL

Sensitive package import Note test

Certain system packages contain functions which may be a possible source of non-determinism

"cosmossdk.io/depinject"

modulev1 "cosmossdk.io/api/cosmos/benchmark/module/v1"
"cosmossdk.io/core/appmodule"
"cosmossdk.io/core/store"
"cosmossdk.io/depinject"
"cosmossdk.io/depinject/appconfig"
"cosmossdk.io/log"
gen "cosmossdk.io/tools/benchmark/generator"
)

const ModuleName = "benchmark"
const maxStoreKeyGenIterations = 100
const (
ModuleName = "benchmark"
maxStoreKeyGenIterations = 100
)

func init() {
appconfig.RegisterModule(
Expand Down
3 changes: 2 additions & 1 deletion tools/benchmark/module/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package module
import (
"context"
"encoding/json"
"github.com/cosmos/cosmos-sdk/types/msgservice"

"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/spf13/cobra"
"google.golang.org/grpc"
Expand All @@ -20,6 +20,7 @@ import (

"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/types/module"
"github.com/cosmos/cosmos-sdk/types/msgservice"
)

var (
Expand Down

0 comments on commit 9b504b8

Please sign in to comment.