Skip to content

Commit

Permalink
update grpc default opts
Browse files Browse the repository at this point in the history
  • Loading branch information
klim0v committed Jul 27, 2022
1 parent 879851a commit ddde090
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/grpc_client/grpc_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/credentials/insecure"
"google.golang.org/grpc/status"
"google.golang.org/protobuf/encoding/protojson"
"google.golang.org/protobuf/proto"
Expand All @@ -34,7 +35,7 @@ func New(address string) (*Client, error) {
clientConn, err := grpc.Dial(address,
grpc.WithStreamInterceptor(grpc_retry.StreamClientInterceptor()),
grpc.WithUnaryInterceptor(grpc_retry.UnaryClientInterceptor()),
grpc.WithInsecure(),
grpc.WithTransportCredentials(insecure.NewCredentials()),
grpc.WithStreamInterceptor(grpc_retry.StreamClientInterceptor()),
grpc.WithUnaryInterceptor(grpc_retry.UnaryClientInterceptor()),
grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(1000000000)))
Expand Down

0 comments on commit ddde090

Please sign in to comment.