Skip to content

Commit

Permalink
Support cmdutils BindSubViper change for rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
tolga-coplu committed Jul 20, 2023
1 parent 151156c commit 0ff2614
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpc/node/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"time"

"github.com/aurora-is-near/relayer2-base/cmd"
"github.com/aurora-is-near/relayer2-base/cmdutils"
"github.com/aurora-is-near/relayer2-base/log"

"github.com/spf13/viper"
Expand Down Expand Up @@ -69,7 +69,7 @@ func GetConfig() *Config {
config := defaultConfig()
sub := viper.Sub(configPath)
if sub != nil {
cmd.BindSubViper(sub, configPath)
cmdutils.BindSubViper(sub, configPath)
if err := sub.Unmarshal(&config); err != nil {
log.Log().Warn().Err(err).Msgf("failed to parse configuration [%s] from [%s], "+
"falling back to defaults", configPath, viper.ConfigFileUsed())
Expand Down

0 comments on commit 0ff2614

Please sign in to comment.