91
}
92
93
>
dialOptions := []grpc.DialOption{
grpc.go
94
>
grpcSecureOpt,
95
>
grpc.WithContextDialer(contextDialer),
96
>
grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(maxInternodeRecvPayloadSize)),
97
>
grpc.WithChainUnaryInterceptor(
98
>
headersInterceptor,
99
>
metrics.NewClientMetricsTrailerPropagatorInterceptor(logger),
100
>
errorInterceptor,
101
>
),
102
>
grpc.WithChainStreamInterceptor(
103
>
interceptor.StreamErrorInterceptor,
104
>
),
105
>
grpc.WithDefaultServiceConfig(DefaultServiceConfig),
106
>
grpc.WithDisableServiceConfig(),
107
>
grpc.WithConnectParams(cp),
108
>
}
109
>
dialOptions = append(dialOptions, opts...)
110
>
111
>
return grpc.NewClient(hostName, dialOptions...)
112
}
113