client: drop keepalive options #32

Merged
fyrchik merged 1 commit from fyrchik/frostfs-api-go:fix-keepalive into master 2023-05-19 08:07:09 +00:00
Showing only changes of commit a3e8e0c00c - Show all commits

View file

@ -6,7 +6,6 @@ import (
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
"google.golang.org/grpc/keepalive"
)
const (
@ -30,9 +29,8 @@ type cfg struct {
}
const (
defaultDialTimeout = 5 * time.Second
defaultKeepAliveTimeout = 5 * time.Second
defaultRWTimeout = 1 * time.Minute
defaultDialTimeout = 5 * time.Second
defaultRWTimeout = 1 * time.Minute
)
func (c *cfg) initDefault() {
@ -41,9 +39,6 @@ func (c *cfg) initDefault() {
c.grpcDialOpts = []grpc.DialOption{
grpc.WithBlock(),
grpc.WithTransportCredentials(insecure.NewCredentials()),
grpc.WithKeepaliveParams(keepalive.ClientParameters{
Timeout: defaultKeepAliveTimeout,
}),
}
}