Skip to content

Commit eb6d5ed

Browse files
f0086BirknerAlex
authored andcommitted
fix(grpc): replace dial options with call options
Ticket: TV-745 Signed-off-by: Aaron Fischer <aaron.fischer@g-portal.cloud>
1 parent 2591ac6 commit eb6d5ed

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

cmd/agent/start.go

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)