|
|
|
@ -14,7 +14,7 @@ func main() {
|
|
|
|
|
rpcPort := flag.Int("port", defaultPorts[0], "get RpcOrganizationPort from cmd,default 11200 as port")
|
|
|
|
|
prometheusPort := flag.Int("prometheus_port", config.Config.Prometheus.OrganizationPrometheusPort[0], "organizationPrometheusPort default listen port")
|
|
|
|
|
flag.Parse()
|
|
|
|
|
fmt.Println("start organization rpc server, port: ", *rpcPort, "version: ", constant.CurrentVersion, "\n")
|
|
|
|
|
fmt.Println("start organization rpc server, port: ", *rpcPort, "OpenIM version: ", constant.CurrentVersion, "\n")
|
|
|
|
|
rpcServer := organization.NewServer(*rpcPort)
|
|
|
|
|
go func() {
|
|
|
|
|
err := promePkg.StartPromeSrv(*prometheusPort)
|
|
|
|
|