Skip to content

Commit 5109115

Browse files
committed
Fixes.
1 parent 0ddd42c commit 5109115

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

examples/example-tls/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ application {
7575
applicationDistribution.into('bin') {
7676
from(helloWorldTlsServer)
7777
from(helloWorldTlsClient)
78-
fileMode = 0755
78+
filePermissions {
79+
unix(0755)
80+
}
7981
}
8082
}

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ public static void main(String[] args) throws Exception {
6868

6969
if (args.length < 2 || args.length == 4 || args.length > 5) {
7070
System.out.println("USAGE: HelloWorldClientTls host port [trustCertCollectionFilePath " +
71-
"[clientCertChainFilePath clientPrivateKeyFilePath]]\n Note: clientCertChainFilePath and " +
72-
"clientPrivateKeyFilePath are only needed if mutual auth is desired.");
71+
"[clientCertChainFilePath clientPrivateKeyFilePath]]\n Note: clientCertChainFilePath and " +
72+
"clientPrivateKeyFilePath are only needed if mutual auth is desired.");
7373
System.exit(0);
7474
}
7575

@@ -88,9 +88,9 @@ public static void main(String[] args) throws Exception {
8888
String host = args[0];
8989
int port = Integer.parseInt(args[1]);
9090
ManagedChannel channel = Grpc.newChannelBuilderForAddress(host, port, tlsBuilder.build())
91-
/* Only for using provided test certs. */
92-
.overrideAuthority("foo.test.google.fr")
93-
.build();
91+
/* Only for using provided test certs. */
92+
.overrideAuthority("foo.test.google.fr")
93+
.build();
9494
try {
9595
HelloWorldClientTls client = new HelloWorldClientTls(channel);
9696
client.greet(host);

0 commit comments

Comments
 (0)