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