From 19cabd9e6b2ea98f975dac318b8d74ab7c0e7cdb Mon Sep 17 00:00:00 2001 From: icey-yu <1186114839@qq.com> Date: Fri, 7 Jun 2024 19:22:06 +0800 Subject: [PATCH] fix: config read --- pkg/common/cmd/push.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/common/cmd/push.go b/pkg/common/cmd/push.go index 89bfbf4d29..6e6014021e 100644 --- a/pkg/common/cmd/push.go +++ b/pkg/common/cmd/push.go @@ -19,6 +19,7 @@ import ( "github.com/openimsdk/open-im-server/v3/internal/push" "github.com/openimsdk/open-im-server/v3/pkg/common/config" "github.com/openimsdk/open-im-server/v3/pkg/common/startrpc" + "github.com/openimsdk/tools/system/program" "github.com/spf13/cobra" ) @@ -43,6 +44,7 @@ func NewPushRpcCmd() *PushRpcCmd { LocalCacheConfigFileName: &pushConfig.LocalCacheConfig, DiscoveryConfigFilename: &pushConfig.Discovery, } + ret.RootCmd = NewRootCmd(program.GetProcessName(), WithConfigMap(ret.configMap)) ret.ctx = context.WithValue(context.Background(), "version", config.Version) ret.Command.RunE = func(cmd *cobra.Command, args []string) error { ret.pushConfig.FcmConfigPath = ret.ConfigPath()