Skip to content

Commit c414609

Browse files
Merge branch 'grpc:master' into Issue_fixed_12142
2 parents 77bed78 + 26bd0ee commit c414609

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/src/main/java/io/grpc/internal/InternalSubchannel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ private void gotoState(final ConnectivityStateInfo newState) {
346346

347347
if (state.getState() != newState.getState()) {
348348
Preconditions.checkState(state.getState() != SHUTDOWN,
349-
"Cannot transition out of SHUTDOWN to " + newState);
349+
"Cannot transition out of SHUTDOWN to %s", newState.getState());
350350
if (reconnectDisabled && newState.getState() == TRANSIENT_FAILURE) {
351351
state = ConnectivityStateInfo.forNonError(IDLE);
352352
} else {

java_grpc_library.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,15 @@ def _java_rpc_library_impl(ctx):
9191
srcjar = ctx.actions.declare_file("%s-proto-gensrc.jar" % ctx.label.name)
9292

9393
args = ctx.actions.args()
94-
args.add(toolchain.plugin.files_to_run.executable, format = "--plugin=protoc-gen-rpc-plugin=%s")
94+
args.add(toolchain.plugin[DefaultInfo].files_to_run.executable, format = "--plugin=protoc-gen-rpc-plugin=%s")
9595
args.add("--rpc-plugin_out={0}:{1}".format(toolchain.plugin_arg, srcjar.path))
9696
args.add_joined("--descriptor_set_in", descriptor_set_in, join_with = ctx.configuration.host_path_separator)
9797
args.add_all(srcs, map_each = _path_ignoring_repository)
9898

9999
ctx.actions.run(
100-
inputs = depset(srcs, transitive = [descriptor_set_in, toolchain.plugin.files]),
100+
inputs = depset(srcs, transitive = [descriptor_set_in, toolchain.plugin[DefaultInfo].files]),
101101
outputs = [srcjar],
102-
executable = toolchain.protoc.files_to_run,
102+
executable = toolchain.protoc[DefaultInfo].files_to_run,
103103
arguments = [args],
104104
use_default_shell_env = True,
105105
toolchain = None,

0 commit comments

Comments
 (0)