Skip to content

Commit

Permalink
fix: config read
Browse files Browse the repository at this point in the history
  • Loading branch information
icey-yu committed Jun 7, 2024
1 parent 7065b5f commit 0ef42b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/common/cmd/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ func NewPushRpcCmd() *PushRpcCmd {
LocalCacheConfigFileName: &pushConfig.LocalCacheConfig,
DiscoveryConfigFilename: &pushConfig.Discovery,
}
ret.pushConfig.FcmPath = ret.ConfigPath()
ret.RootCmd = NewRootCmd(program.GetProcessName(), WithConfigMap(ret.configMap))
ret.pushConfig.FcmConfigPath = ret.ConfigPath()
ret.ctx = context.WithValue(context.Background(), "version", config.Version)
ret.Command.RunE = func(cmd *cobra.Command, args []string) error {
ret.RootCmd = NewRootCmd(program.GetProcessName(), WithConfigMap(ret.configMap))
return ret.runE()
}
return ret
Expand Down

0 comments on commit 0ef42b1

Please sign in to comment.