We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7c9c45c + 8c3d730 commit 89ec9a0Copy full SHA for 89ec9a0
gateway/grpc.go
@@ -45,16 +45,18 @@ type GrpcGateway struct {
45
// NewGrpcGateway returns a new gRPC gateway.
46
47
func NewGrpcGateway(network config.Network, opts ...grpcAccess.ClientOption) (*GrpcGateway, error) {
48
- opts = append(
49
- opts,
+ options := append(
+ []grpcAccess.ClientOption{
50
grpcAccess.WithGRPCDialOptions(
51
- grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(maxGRPCMessageSize),
+ grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(maxGRPCMessageSize)),
52
),
53
- ))
+ },
54
+ opts...,
55
+ )
56
57
gClient, err := grpcAccess.NewClient(
58
network.Host,
- opts...,
59
+ options...,
60
)
61
62
if err != nil || gClient == nil {
0 commit comments