Skip to content

Commit

Permalink
Remove unused v from options
Browse files Browse the repository at this point in the history
  • Loading branch information
Manav-Aggarwal committed Aug 6, 2022
1 parent 74194e4 commit 1702a47
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions baseapp/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ func SetPruning(opts pruningtypes.PruningOptions) StoreOption {
}

func SetSubstoreTracer(w io.Writer) StoreOption {
return func(cfg *multi.StoreParams, v uint64) error {
return func(cfg *multi.StoreParams, _ uint64) error {
cfg.SetTracer(w)
return nil
}
}

func SetTracerFor(skey storetypes.StoreKey, w io.Writer) StoreOption {
return func(cfg *multi.StoreParams, v uint64) error {
return func(cfg *multi.StoreParams, _ uint64) error {
cfg.SetTracerFor(skey, w)
return nil
}
Expand Down Expand Up @@ -61,7 +61,7 @@ func SetHaltHeight(blockHeight uint64) AppOptionFunc {

// SetInitialHeight returns a BaseApp option function that sets the initial block height.
func SetInitialHeight(blockHeight int64) AppOptionFunc {
return func(bap *BaseApp) { bap.setInitialHeight(blockHeight) }
return func(bapp *BaseApp) { bapp.setInitialHeight(blockHeight) }
}

// SetHaltTime returns a BaseApp option function that sets the halt block time.
Expand Down Expand Up @@ -89,7 +89,7 @@ func SetIndexEvents(ie []string) AppOptionFunc {
// SetInterBlockCache provides a BaseApp option function that sets the
// inter-block cache.
func SetInterBlockCache(cache sdk.MultiStorePersistentCache) AppOptionFunc {
opt := func(cfg *multi.StoreParams, _ uint64) error {
opt := func(cfg *multi.StoreParams, v uint64) error {
cfg.PersistentCache = cache
return nil
}
Expand Down

0 comments on commit 1702a47

Please sign in to comment.