Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
kocubinski committed Oct 28, 2024
1 parent d3bb0c3 commit c48172d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions server/v2/command_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type CommandFactory struct {
// this viper handle is kept because certain commands in server/v2 fetch a viper instance
// from the command context in order to read the config.
// After merging #22267 this is no longer required, and server.ConfigMap can be used instead.
// See issue #<CREATE ME>
// See issue #22388
vipr *viper.Viper
}

Expand Down Expand Up @@ -127,7 +127,7 @@ func (f *CommandFactory) enhanceCommand(cmd *cobra.Command) {
}

// EnhanceCommandContext sets the viper and logger in the command context.
func (f *CommandFactory) EnchanceRootCommand(cmd *cobra.Command) {
func (f *CommandFactory) EnhanceRootCommand(cmd *cobra.Command) {
f.enhanceCommand(cmd)
SetCmdServerContext(cmd, f.vipr, f.logger)
}
Expand Down
8 changes: 3 additions & 5 deletions simapp/v2/simdv2/cmd/root_di.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,8 @@ func NewRootCmd[T transaction.Tx](
clientCtx client.Context
simApp *simapp.SimApp[T]
depinjectConfig = depinject.Configs(
depinject.Configs(
depinject.Supply(logger, runtime.GlobalConfig(configMap)),
depinject.Provide(ProvideClientContext),
),
depinject.Supply(logger, runtime.GlobalConfig(configMap)),
depinject.Provide(ProvideClientContext),
)
)
if serverv2.IsAppRequired(subCommand) {
Expand Down Expand Up @@ -84,7 +82,7 @@ func NewRootCmd[T transaction.Tx](
SilenceErrors: true,
PersistentPreRunE: rootCommandPersistentPreRun(clientCtx),
}
factory.EnchanceRootCommand(rootCommand)
factory.EnhanceRootCommand(rootCommand)
_, err = initRootCmd(rootCommand, logger, commandDeps)
if err != nil {
return nil, err
Expand Down

0 comments on commit c48172d

Please sign in to comment.