mirror of https://github.com/grpc/grpc-java.git
core: Make tiny fixes to InUseStateAggregator2 and InternalSubchannel (#2466)
- Remove unused variable terminated from TransportListener#transportTerminated - Do not mention getLock in the javadoc of InUseStateAggregator2#handleNotInUse
This commit is contained in:
parent
5269a1b969
commit
5ff16dd4c6
|
|
@ -75,8 +75,6 @@ abstract class InUseStateAggregator2<T> {
|
|||
|
||||
/**
|
||||
* Called when the aggregated in-use state has changed to false, which means no object is in use.
|
||||
*
|
||||
* <p>This method is called under the lock returned by {@link #getLock}.
|
||||
*/
|
||||
abstract void handleNotInUse();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -447,7 +447,6 @@ final class InternalSubchannel implements WithLogId {
|
|||
log.log(Level.FINE, "[{0}] {1} for {2} is terminated",
|
||||
new Object[] {getLogId(), transport.getLogId(), address});
|
||||
}
|
||||
boolean terminated = false;
|
||||
handleTransportInUseState(transport, false);
|
||||
synchronized (lock) {
|
||||
transports.remove(transport);
|
||||
|
|
|
|||
Loading…
Reference in New Issue