main modify

pull/57/head
Gordon 3 years ago
parent 90a466ef01
commit a08aeee0c2

@ -7,8 +7,8 @@ import (
)
func main() {
rpcPort := flag.Int("rpc_port", 10500, "rpc listening port")
wsPort := flag.Int("ws_port", 10800, "ws listening port")
rpcPort := flag.Int("rpc_port", 10400, "rpc listening port")
wsPort := flag.Int("ws_port", 17778, "ws listening port")
flag.Parse()
var wg sync.WaitGroup
wg.Add(1)

@ -7,7 +7,7 @@ import (
)
func main() {
rpcPort := flag.Int("port", -1, "rpc listening port")
rpcPort := flag.Int("port", 10700, "rpc listening port")
flag.Parse()
var wg sync.WaitGroup
wg.Add(1)

@ -2,13 +2,12 @@ package main
import (
rpcChat "Open_IM/internal/rpc/chat"
"Open_IM/pkg/utils"
"flag"
)
func main() {
rpcPort := flag.String("port", "", "rpc listening port")
rpcPort := flag.Int("port", 10300, "rpc listening port")
flag.Parse()
rpcServer := rpcChat.NewRpcChatServer(utils.StringToInt(*rpcPort))
rpcServer := rpcChat.NewRpcChatServer(*rpcPort)
rpcServer.Run()
}

Loading…
Cancel
Save