package main import ( "Open_IM/internal/rpc/msg" "Open_IM/pkg/common/config" "flag" "fmt" ) func main() { defaultPorts := config.Config.RpcPort.OpenImMessagePort rpcPort := flag.Int("port", defaultPorts[0], "rpc listening port") flag.Parse() fmt.Println("start msg rpc server, port: ", *rpcPort) rpcServer := msg.NewRpcChatServer(*rpcPort) rpcServer.Run() }