Skip to content

Commit f25a555

Browse files
committed
Remove unnecessary .getPlaintext() parameter
Already did this for `test/TestServer.scala` as part of the gRPC bump. `test_version/version_specific_tests_dir/TestServer.scala` gets the same treatment now to fix `test_scala_version 2.11.12` from `test_version.sh`, which failed with: ``` ERROR: .../test_version/test_scala_version_1731027515/BUILD:161:14: scala @//:lib_with_scala_proto_dep failed: (Exit 1): scalac failed: error executing command (from target //:lib_with_scala_proto_dep) bazel-out/.../bin/external/io_bazel_rules_scala/src/java/io/bazel/rulesscala/scalac/scalac @bazel-out/.../bin/lib_with_scala_proto_dep.jar-0.params TestServer.scala:70: error: too many arguments for method usePlaintext: ()?0 val channel = ManagedChannelBuilder.forAddress(host, port).usePlaintext(true).build ^ ```
1 parent c61501d commit f25a555

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test_version/version_specific_tests_dir/TestServer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class TestServer(executionContext: ExecutionContext) { self =>
6767

6868
object TestClient {
6969
def apply(host: String, port: Int): TestClient = {
70-
val channel = ManagedChannelBuilder.forAddress(host, port).usePlaintext(true).build
70+
val channel = ManagedChannelBuilder.forAddress(host, port).usePlaintext().build
7171
val blockingStub = TestServiceGrpc.blockingStub(channel)
7272
new TestClient(channel, blockingStub)
7373
}

0 commit comments

Comments
 (0)