Przeglądaj źródła

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

cong 2 lat temu
rodzic
commit
8ad0668612
1 zmienionych plików z 0 dodań i 8 usunięć
  1. 0 8
      zrpc/client.go

+ 0 - 8
zrpc/client.go

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