mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 10:59:32 +08:00
disable retry in grpc connect and grpc sendMsg (#26095)
Signed-off-by: Wei Liu <wei.liu@zilliz.com>
This commit is contained in:
parent
47392b0a0f
commit
0e103efc5d
@ -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),
|
||||
)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user