package main import ( "OpenIM/internal/rpc/third" "OpenIM/internal/startrpc" "OpenIM/pkg/common/config" ) func main() { if err := config.InitConfig(""); err != nil { panic(err.Error()) } if err := startrpc.Start(config.Config.RpcPort.OpenImThirdPort[0], config.Config.RpcRegisterName.OpenImThirdName, config.Config.Prometheus.ThirdPrometheusPort[0], third.Start); err != nil { panic(err.Error()) } }