nacos-sdk-go
nacos-sdk-go copied to clipboard
v2版本是默认选择grpc请求吗,Scheme设置http似乎无效
发现了,确实只能用grpc,且新的提交才有grpcport选项,且连接选项grpc.WithInsecure(),当我用apisix做ingress,流量无法导入,必须grpc.WithTransportCredentials(credentials.NewTLS(&tls.Config{ServerName: "hostname", InsecureSkipVerify: true})
,让网关识别host
getconfig cachedir是xxx\AppData\Local\Temp\GoLand\cache
到listenconfig 就变成xxx\AppData\Local\Temp\GoLand\cache\config
看了下有意这么设计的,为什么呢
我初始化配置后,由于本地找不到配置,会再次执行OnChange,多余了,且配置刷新我的其他客户端也会跟着不必要的刷新