Commit 289d3b936d29794feb98be804b43ffa368de17e8
Committed by
GitHub
Merge pull request #5132 from volodymyr-babak/edge-grpc-gzip
[3.3.1] EdgeGrpcClient: added GZIP compression
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -92,7 +92,7 @@ public class EdgeGrpcClient implements EdgeRpcClient { |
92 | 92 | channel = builder.build(); |
93 | 93 | EdgeRpcServiceGrpc.EdgeRpcServiceStub stub = EdgeRpcServiceGrpc.newStub(channel); |
94 | 94 | log.info("[{}] Sending a connect request to the TB!", edgeKey); |
95 | - this.inputStream = stub.handleMsgs(initOutputStream(edgeKey, onUplinkResponse, onEdgeUpdate, onDownlink, onError)); | |
95 | + this.inputStream = stub.withCompression("gzip").handleMsgs(initOutputStream(edgeKey, onUplinkResponse, onEdgeUpdate, onDownlink, onError)); | |
96 | 96 | this.inputStream.onNext(RequestMsg.newBuilder() |
97 | 97 | .setMsgType(RequestMsgType.CONNECT_RPC_MESSAGE) |
98 | 98 | .setConnectRequestMsg(ConnectRequestMsg.newBuilder().setEdgeRoutingKey(edgeKey).setEdgeSecret(edgeSecret).build()) | ... | ... |