fix: wecom user agent
CI / changes (push) Successful in 12s
CI / ad (push) Successful in 1s
CI / admin (push) Successful in 0s
CI / bff (push) Failing after 25s
CI / chore (push) Successful in 1s
CI / express (push) Successful in 0s
CI / product (push) Successful in 27s
CI / sale (push) Successful in 0s
CI / user (push) Successful in 0s
CI / wecom (push) Successful in 25s

This commit is contained in:
zzw
2026-08-31 15:22:44 +08:00
parent 9111cb26e7
commit ce7aa18477
5 changed files with 0 additions and 11 deletions
-2
View File
@@ -13,7 +13,6 @@ import (
"google.golang.org/grpc/credentials/insecure"
)
// Nacos builds a zrpc client whose dials resolve via discovery.Pick.
func Nacos(conf zrpc.RpcClientConf) zrpc.Client {
serviceName := conf.Target
if serviceName == "" {
@@ -27,7 +26,6 @@ func Nacos(conf zrpc.RpcClientConf) zrpc.Client {
return zrpc.MustNewClient(cliConf,
zrpc.WithDialOption(grpc.WithTransportCredentials(insecure.NewCredentials())),
zrpc.WithDialOption(grpc.WithUnaryInterceptor(response.UserClientInterceptor)),
// 等重连/重新 Pick
zrpc.WithDialOption(grpc.WithDefaultCallOptions(grpc.WaitForReady(true))),
zrpc.WithDialOption(grpc.WithConnectParams(grpc.ConnectParams{
MinConnectTimeout: 2 * time.Second,