This commit is contained in:
wangchuxiao 2023-03-09 11:30:13 +08:00
parent 471b9cbea6
commit ee11636d7e

View File

@ -2,6 +2,7 @@ package cmd
import ( import (
"OpenIM/internal/startrpc" "OpenIM/internal/startrpc"
"OpenIM/pkg/common/config"
"OpenIM/pkg/discoveryregistry" "OpenIM/pkg/discoveryregistry"
"fmt" "fmt"
"github.com/spf13/cobra" "github.com/spf13/cobra"
@ -15,7 +16,7 @@ type RpcCmd struct {
func NewRpcCmd(rpcRegisterName string) *RpcCmd { func NewRpcCmd(rpcRegisterName string) *RpcCmd {
rpcCmd := &RpcCmd{NewRootCmd(), rpcRegisterName} rpcCmd := &RpcCmd{NewRootCmd(), rpcRegisterName}
fmt.Println("line 18", *rpcCmd, rpcCmd, rpcRegisterName) fmt.Println("line 18", *rpcCmd, rpcCmd, rpcRegisterName, config.Config.RpcRegisterName)
return rpcCmd return rpcCmd
} }