Skip to content

Commit d27128b

Browse files
committed
Rename response proto field.
1 parent 3346bf8 commit d27128b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

interop-testing/src/main/java/io/grpc/testing/integration/TestServiceClient.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,7 @@ public void testMcs(TestServiceGrpc.TestServiceStub asyncStub) throws Exception
11251125
streamObserver1.onNext(request);
11261126
Object responseObj = responseObserver1.take();
11271127
StreamingOutputCallResponse callResponse = (StreamingOutputCallResponse) responseObj;
1128-
String clientSocketAddressInCall1 = callResponse.getClientSocketAddress();
1128+
String clientSocketAddressInCall1 = callResponse.getPeerSocketAddress();
11291129
assertThat(clientSocketAddressInCall1).isNotEmpty();
11301130

11311131
StreamingOutputCallResponseObserver responseObserver2 =
@@ -1134,7 +1134,7 @@ public void testMcs(TestServiceGrpc.TestServiceStub asyncStub) throws Exception
11341134
asyncStub.fullDuplexCall(responseObserver2);
11351135
streamObserver2.onNext(request);
11361136
callResponse = (StreamingOutputCallResponse) responseObserver2.take();
1137-
String clientSocketAddressInCall2 = callResponse.getClientSocketAddress();
1137+
String clientSocketAddressInCall2 = callResponse.getPeerSocketAddress();
11381138

11391139
assertThat(clientSocketAddressInCall1).isEqualTo(clientSocketAddressInCall2);
11401140

@@ -1146,7 +1146,7 @@ public void testMcs(TestServiceGrpc.TestServiceStub asyncStub) throws Exception
11461146
asyncStub.fullDuplexCall(responseObserver3);
11471147
streamObserver3.onNext(request);
11481148
callResponse = (StreamingOutputCallResponse) responseObserver3.take();
1149-
String clientSocketAddressInCall3 = callResponse.getClientSocketAddress();
1149+
String clientSocketAddressInCall3 = callResponse.getPeerSocketAddress();
11501150

11511151
// This assertion is currently failing because connection scaling when MCS limit has been
11521152
// reached is not yet implemented in gRPC Java.

interop-testing/src/main/java/io/grpc/testing/integration/TestServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public void onNext(StreamingOutputCallRequest request) {
245245
if (whetherSendClientSocketAddressInResponse(request)) {
246246
responseObserver.onNext(
247247
StreamingOutputCallResponse.newBuilder()
248-
.setClientSocketAddress(PEER_ADDRESS_CONTEXT_KEY.get().toString())
248+
.setPeerSocketAddress(PEER_ADDRESS_CONTEXT_KEY.get().toString())
249249
.build());
250250
return;
251251
}

interop-testing/src/main/proto/grpc/testing/messages.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ message StreamingOutputCallResponse {
191191
// Payload to increase response size.
192192
Payload payload = 1;
193193

194-
// The client's socket address if requested.
195-
string client_socket_address = 2;
194+
// The peer's socket address if requested.
195+
string peer_socket_address = 2;
196196
}
197197

198198
// For reconnect interop test only.

0 commit comments

Comments
 (0)