fix(zrpc): remove default keepalive params for NewClientWithTarget (#3208)

master
cong 2 years ago committed by GitHub
parent 8a043d2443
commit 8ad0668612
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -11,8 +11,6 @@ import (
"google.golang.org/grpc/keepalive"
)
const defaultClientKeepaliveTime = 20 * time.Second
var (
// WithDialOption is an alias of internal.WithDialOption.
WithDialOption = internal.WithDialOption
@ -95,12 +93,6 @@ func NewClientWithTarget(target string, opts ...ClientOption) (Client, error) {
Timeout: true,
}
opts = append([]ClientOption{
WithDialOption(grpc.WithKeepaliveParams(keepalive.ClientParameters{
Time: defaultClientKeepaliveTime,
})),
}, opts...)
return internal.NewClient(target, middlewares, opts...)
}

Loading…
Cancel
Save