feature(retry): Delete retry mechanism (#1279)
This commit is contained in:
@@ -34,7 +34,6 @@ type (
|
||||
NonBlock bool
|
||||
Timeout time.Duration
|
||||
Secure bool
|
||||
Retry bool
|
||||
DialOptions []grpc.DialOption
|
||||
}
|
||||
|
||||
@@ -83,7 +82,6 @@ func (c *client) buildDialOptions(opts ...ClientOption) []grpc.DialOption {
|
||||
clientinterceptors.PrometheusInterceptor,
|
||||
clientinterceptors.BreakerInterceptor,
|
||||
clientinterceptors.TimeoutInterceptor(cliOpts.Timeout),
|
||||
clientinterceptors.RetryInterceptor(cliOpts.Retry),
|
||||
),
|
||||
WithStreamClientInterceptors(
|
||||
clientinterceptors.StreamTracingInterceptor,
|
||||
@@ -136,13 +134,6 @@ func WithTimeout(timeout time.Duration) ClientOption {
|
||||
}
|
||||
}
|
||||
|
||||
// WithRetry returns a func to customize a ClientOptions with auto retry.
|
||||
func WithRetry() ClientOption {
|
||||
return func(options *ClientOptions) {
|
||||
options.Retry = true
|
||||
}
|
||||
}
|
||||
|
||||
// WithTransportCredentials return a func to make the gRPC calls secured with given credentials.
|
||||
func WithTransportCredentials(creds credentials.TransportCredentials) ClientOption {
|
||||
return func(options *ClientOptions) {
|
||||
|
||||
Reference in New Issue
Block a user