Skip to content

Commit

Permalink
refactor(mqtt): load end of app.new
Browse files Browse the repository at this point in the history
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
  • Loading branch information
jmastr committed Nov 15, 2024
1 parent 6ddc073 commit 746606b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ import (
ibctm "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint"
"github.com/spf13/cast"

"github.com/planetmint/planetmint-go/monitor"
machinemodule "github.com/planetmint/planetmint-go/x/machine"
machinemodulekeeper "github.com/planetmint/planetmint-go/x/machine/keeper"
machinemoduletypes "github.com/planetmint/planetmint-go/x/machine/types"
Expand Down Expand Up @@ -806,6 +807,8 @@ func New(
app.ScopedTransferKeeper = scopedTransferKeeper
// this line is used by starport scaffolding # stargate/app/beforeInitReturn

monitor.LazyMqttMonitorLoader(homePath)

return app
}

Expand Down
2 changes: 0 additions & 2 deletions x/dao/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"

"github.com/planetmint/planetmint-go/monitor"
"github.com/planetmint/planetmint-go/x/dao/types"
)

Expand Down Expand Up @@ -50,7 +49,6 @@ func NewKeeper(
if !ps.HasKeyTable() {
ps = ps.WithKeyTable(types.ParamKeyTable())
}
monitor.LazyMqttMonitorLoader(rootDir)
return &Keeper{
cdc: cdc,
storeKey: storeKey,
Expand Down

0 comments on commit 746606b

Please sign in to comment.