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

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
This commit is contained in:
wei liu 2023-08-03 15:23:07 +08:00 committed by GitHub
parent 47392b0a0f
commit 0e103efc5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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),
)
}