mirror of https://github.com/grpc/grpc-java.git
core: remove unnecessary private method (#5417)
This commit is contained in:
parent
5cfff5bfce
commit
8806403b3a
|
|
@ -1316,7 +1316,7 @@ final class ManagedChannelImpl extends ManagedChannel implements
|
||||||
try {
|
try {
|
||||||
serviceConfigInterceptor.handleUpdate(serviceConfig);
|
serviceConfigInterceptor.handleUpdate(serviceConfig);
|
||||||
if (retryEnabled) {
|
if (retryEnabled) {
|
||||||
throttle = getThrottle(config);
|
throttle = ServiceConfigUtil.getThrottlePolicy(serviceConfig);
|
||||||
}
|
}
|
||||||
} catch (RuntimeException re) {
|
} catch (RuntimeException re) {
|
||||||
logger.log(
|
logger.log(
|
||||||
|
|
@ -1380,12 +1380,6 @@ final class ManagedChannelImpl extends ManagedChannel implements
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nullable
|
|
||||||
private static Throttle getThrottle(Attributes config) {
|
|
||||||
return ServiceConfigUtil.getThrottlePolicy(
|
|
||||||
config.get(GrpcAttributes.NAME_RESOLVER_SERVICE_CONFIG));
|
|
||||||
}
|
|
||||||
|
|
||||||
private final class SubchannelImpl extends AbstractSubchannel {
|
private final class SubchannelImpl extends AbstractSubchannel {
|
||||||
// Set right after SubchannelImpl is created.
|
// Set right after SubchannelImpl is created.
|
||||||
InternalSubchannel subchannel;
|
InternalSubchannel subchannel;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue