mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-23 09:50:27 +08:00
third
This commit is contained in:
parent
3c1b0e3994
commit
d0c042844e
@ -1,14 +1,14 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"github.com/OpenIMSDK/Open-IM-Server/internal/rpc/third"
|
||||
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/cmd"
|
||||
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/config"
|
||||
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/log"
|
||||
)
|
||||
|
||||
func main() {
|
||||
fmt.Println("#######################################")
|
||||
rpcCmd := cmd.NewRpcCmd("third")
|
||||
rpcCmd.AddPortFlag()
|
||||
rpcCmd.AddPrometheusPortFlag()
|
||||
@ -16,7 +16,7 @@ func main() {
|
||||
panic(err.Error())
|
||||
}
|
||||
name := config.Config.RpcRegisterName.OpenImThirdName
|
||||
log.ZInfo(context.Background(), "StartRpc", "name", name)
|
||||
fmt.Println("StartThirdRpc", "name:", name)
|
||||
if err := rpcCmd.StartSvr(name, third.Start); err != nil {
|
||||
panic(err.Error())
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user