未验证 提交 0e103efc 编写于 作者: W wei liu 提交者: GitHub

disable retry in grpc connect and grpc sendMsg (#26095)

Signed-off-by: NWei Liu <wei.liu@zilliz.com>
上级 47392b0a
......@@ -222,6 +222,8 @@ func (c *ClientBase[T]) connect(ctx context.Context) error {
MinConnectTimeout: c.DialTimeout,
}),
grpc.WithPerRPCCredentials(&Token{Value: crypto.Base64Encode(util.MemberCredID)}),
grpc.WithDisableRetry(),
grpc.FailOnNonTempDialError(true),
)
} else {
conn, err = grpc.DialContext(
......@@ -259,6 +261,8 @@ func (c *ClientBase[T]) connect(ctx context.Context) error {
MinConnectTimeout: c.DialTimeout,
}),
grpc.WithPerRPCCredentials(&Token{Value: crypto.Base64Encode(util.MemberCredID)}),
grpc.WithDisableRetry(),
grpc.FailOnNonTempDialError(true),
)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册