chore: refactor zrpc timeout (#3671)

This commit is contained in:
Kevin Wan
2023-10-26 08:55:26 +08:00
committed by GitHub
parent 842c4d81cc
commit 922efbfc2d
10 changed files with 63 additions and 87 deletions

View File

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