We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
func init() { consulRegistry := consul.NewRegistry( //指定微服务的ip: 选择注册服务器地址,默认为本机,也可以选择consul集群中的client,建议一个微服务对应一个consul集群的client registry.Addrs("192.168.5.191:8500"), ) // Create service srv := micro.NewService( micro.Registry(consulRegistry), ) srv.Init() MicroClient = srv.Client()
} 这个是初始化客户端 ------------- "id":"go.micro.client","code":408,"detail":"call timeout: context deadline exceeded","status":"Request Timeout"}"
The text was updated successfully, but these errors were encountered:
same question
Sorry, something went wrong.
No branches or pull requests
func init() {
consulRegistry := consul.NewRegistry(
//指定微服务的ip: 选择注册服务器地址,默认为本机,也可以选择consul集群中的client,建议一个微服务对应一个consul集群的client
registry.Addrs("192.168.5.191:8500"),
)
// Create service
srv := micro.NewService(
micro.Registry(consulRegistry),
)
srv.Init()
MicroClient = srv.Client()
} 这个是初始化客户端 ------------- "id":"go.micro.client","code":408,"detail":"call timeout: context deadline exceeded","status":"Request Timeout"}"
The text was updated successfully, but these errors were encountered: