File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,8 +72,10 @@ func ConnectToAPI(session *Session) (*grpc.ClientConn, error) {
7272
7373 return api .NewGRPCConnection (
7474 credentials ,
75- grpc .MaxCallRecvMsgSize (math .MaxInt32 ),
76- grpc .MaxCallSendMsgSize (math .MaxInt32 ),
75+ grpc .WithDefaultCallOptions (
76+ grpc .MaxCallRecvMsgSize (math .MaxInt32 ),
77+ grpc .MaxCallSendMsgSize (math .MaxInt32 ),
78+ ),
7779 client .EndpointOverrideOption (endpoint ),
7880 )
7981 }
@@ -86,8 +88,10 @@ func ConnectToAPI(session *Session) (*grpc.ClientConn, error) {
8688 }
8789 return api .NewGRPCConnection (
8890 credentials ,
89- grpc .MaxCallRecvMsgSize (math .MaxInt32 ),
90- grpc .MaxCallSendMsgSize (math .MaxInt32 ),
91+ grpc .WithDefaultCallOptions (
92+ grpc .MaxCallRecvMsgSize (math .MaxInt32 ),
93+ grpc .MaxCallSendMsgSize (math .MaxInt32 ),
94+ ),
9195 client .EndpointOverrideOption (endpoint ),
9296 )
9397}
You can’t perform that action at this time.
0 commit comments