mirror of https://github.com/grpc/grpc-java.git
core: Use lazy message formatting in checkState (#12144)
This commit is contained in:
parent
6f69363d90
commit
26bd0eee47
|
@ -346,7 +346,7 @@ final class InternalSubchannel implements InternalInstrumented<ChannelStats>, Tr
|
|||
|
||||
if (state.getState() != newState.getState()) {
|
||||
Preconditions.checkState(state.getState() != SHUTDOWN,
|
||||
"Cannot transition out of SHUTDOWN to " + newState);
|
||||
"Cannot transition out of SHUTDOWN to %s", newState.getState());
|
||||
if (reconnectDisabled && newState.getState() == TRANSIENT_FAILURE) {
|
||||
state = ConnectivityStateInfo.forNonError(IDLE);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue