Skip to content

Commit

Permalink
attempt correct config parse location
Browse files Browse the repository at this point in the history
  • Loading branch information
czarcas7ic committed Jun 17, 2024
1 parent 1867c79 commit c5e23da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions server/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ func DefaultConfig() *Config {
IAVLFastNodeModuleWhitelist: []string{"lockup"},
IAVLLazyLoading: false,
AppDBBackend: "",
MaxEventSize: 0,
},
Telemetry: telemetry.Config{
Enabled: false,
Expand Down Expand Up @@ -383,6 +384,7 @@ func GetConfig(v *viper.Viper) (Config, error) {
if err := v.Unmarshal(conf); err != nil {
return Config{}, fmt.Errorf("error extracting app config: %w", err)
}
sdk.MaxEventSize = conf.BaseConfig.MaxEventSize
return *conf, nil
}

Expand Down
3 changes: 0 additions & 3 deletions server/config/toml.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import (
"os"
"text/template"

"github.com/cosmos/cosmos-sdk/types"

"github.com/spf13/viper"
)

Expand Down Expand Up @@ -312,7 +310,6 @@ func init() {
func ParseConfig(v *viper.Viper) (*Config, error) {
conf := DefaultConfig()
err := v.Unmarshal(conf)
types.MaxEventSize = conf.BaseConfig.MaxEventSize

return conf, err
}
Expand Down

0 comments on commit c5e23da

Please sign in to comment.