add cmd/rpc

This commit is contained in:
xmcy0011
2021-10-11 21:51:37 +08:00
parent 1a12eb9703
commit 585715adbf
42 changed files with 20 additions and 20 deletions
+13
View File
@@ -0,0 +1,13 @@
package main
import (
"Open_IM/internal/rpc/group"
"flag"
)
func main() {
rpcPort := flag.Int("port", 10500, "get RpcGroupPort from cmd,default 16000 as port")
flag.Parse()
rpcServer := group.NewGroupServer(*rpcPort)
rpcServer.Run()
}