集成grpc consul错误
来源:2-6 gin集成grpc的负载均衡
Li_fei
2023-02-28 13:29:35
引入_ "github.com/mbobakov/grpc-consul-resolver" // It's important
后运行提示如下:
C:\Users\Life\go\pkg\mod\github.com\mbobakov\grpc-consul-resolver@v1.4.2\builder.go:20:65: cannot use url.Endpoint (value of type func() string) as type string in array or slice literal
1回答
这个库的源码支持的是早期版本的grpc比如 1.27.1的grpc,可以先使用1.27.1的grpc,等到第六个阶段后我们放弃使用这个库以后再把grpc改为最新的版本使用
相似问题
回答 1
回答 1