Skip to content

Commit 0d310b3

Browse files
committed
Revert unintended changes.
1 parent 746717e commit 0d310b3

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

examples/example-tls/src/main/java/io/grpc/examples/helloworldtls/HelloWorldClientTls.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import io.grpc.Channel;
2020
import io.grpc.Grpc;
21-
import io.grpc.okhttp.OkHttpChannelBuilder;
2221
import io.grpc.ManagedChannel;
2322
import io.grpc.StatusRuntimeException;
2423
import io.grpc.TlsChannelCredentials;

okhttp/src/main/java/io/grpc/okhttp/OkHttpClientTransport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ public ClientStream newStream(
472472
peerVerificationStatus = Status.OK;
473473
} catch (SSLPeerUnverifiedException | CertificateException e) {
474474
peerVerificationStatus = Status.UNAVAILABLE.withDescription(
475-
String.format("Failure in verifying authority '%s' against peer",
475+
String.format("Failure in verifying authority '%s' against peer during rpc",
476476
callOptions.getAuthority())).withCause(e);
477477
}
478478
peerVerificationResults.put(callOptions.getAuthority(), peerVerificationStatus);

okhttp/src/test/java/io/grpc/okhttp/TlsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public void perRpcAuthorityOverride_doesntMatchCertNames_fails() throws Exceptio
156156
} catch (StatusRuntimeException ex) {
157157
assertThat(ex.getStatus().getCode()).isEqualTo(Status.Code.UNAVAILABLE);
158158
assertThat(ex.getStatus().getDescription()).isEqualTo(
159-
"Failure in verifying authority 'foo.test.google.in' against peer");
159+
"Failure in verifying authority 'foo.test.google.in' against peer during rpc");
160160
assertThat(ex.getStatus().getCause()).isInstanceOf(CertificateException.class);
161161
assertThat(ex.getStatus().getCause().getMessage()).isEqualTo(
162162
"No subject alternative DNS name matching foo.test.google.in found.");

0 commit comments

Comments
 (0)