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 0ef42b1 commit 4fa86bd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/common/cmd/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ 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"
)

Expand All @@ -44,10 +43,9 @@ func NewPushRpcCmd() *PushRpcCmd {
LocalCacheConfigFileName: &pushConfig.LocalCacheConfig,
DiscoveryConfigFilename: &pushConfig.Discovery,
}
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))
ret.pushConfig.FcmConfigPath = ret.ConfigPath()
return ret.runE()
}
return ret
Expand Down

0 comments on commit 4fa86bd

Please sign in to comment.