chore: refactor zrpc timeout (#3671)
This commit is contained in:
@@ -111,7 +111,7 @@ func SetClientSlowThreshold(threshold time.Duration) {
|
||||
clientinterceptors.SetSlowThreshold(threshold)
|
||||
}
|
||||
|
||||
// WithTimeoutCallOption return a call option with given timeout.
|
||||
func WithTimeoutCallOption(timeout time.Duration) grpc.CallOption {
|
||||
return clientinterceptors.WithTimeoutCallOption(timeout)
|
||||
// WithCallTimeout return a call option with given timeout to make a method call.
|
||||
func WithCallTimeout(timeout time.Duration) grpc.CallOption {
|
||||
return clientinterceptors.WithCallTimeout(timeout)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user