Skip to content

Commit

Permalink
fix(lint): go code
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Troian <[email protected]>
  • Loading branch information
troian committed Sep 20, 2024
1 parent 1bee230 commit 5ab197b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 22 deletions.
12 changes: 6 additions & 6 deletions x/market/simulation/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,13 @@ func SimulateMsgCloseBid(ks keepers.Keepers) simtypes.Operation {
}

// SimulateMsgCloseLease generates a MsgCloseLease with random values
func SimulateMsgCloseLease(ks keepers.Keepers) simtypes.Operation {
func SimulateMsgCloseLease(_ keepers.Keepers) simtypes.Operation {
return func(
r *rand.Rand,
app *baseapp.BaseApp,
ctx sdk.Context,
accounts []simtypes.Account,
chainID string,
r *rand.Rand, // nolint revive
app *baseapp.BaseApp, // nolint revive
ctx sdk.Context, // nolint revive
accounts []simtypes.Account, // nolint revive
chainID string, // nolint revive
) (simtypes.OperationMsg, []simtypes.FutureOperation, error) {
// leases := getLeasesWithState(ctx, ks, v1.LeaseActive)
// if len(leases) == 0 {
Expand Down
16 changes: 0 additions & 16 deletions x/market/simulation/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,13 @@ package simulation

import (
sdk "github.com/cosmos/cosmos-sdk/types"
v1 "pkg.akt.dev/go/node/market/v1"

"pkg.akt.dev/go/node/market/v1beta5"

ptypes "pkg.akt.dev/go/node/provider/v1beta4"

keepers "pkg.akt.dev/node/x/market/handler"
)

func getLeasesWithState(ctx sdk.Context, ks keepers.Keepers, state v1.Lease_State) v1.Leases {
var leases v1.Leases

ks.Market.WithLeases(ctx, func(lease v1.Lease) bool {
if lease.State == state {
leases = append(leases, lease)
}

return false
})

return leases
}

func getOrdersWithState(ctx sdk.Context, ks keepers.Keepers, state v1beta5.Order_State) v1beta5.Orders {
var orders v1beta5.Orders

Expand Down

0 comments on commit 5ab197b

Please sign in to comment.