We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46691df commit 44fe552Copy full SHA for 44fe552
1 file changed
s2a/src/main/java/io/grpc/s2a/channel/S2AGrpcChannelPool.java
@@ -68,9 +68,6 @@ private S2AGrpcChannelPool(ObjectPool<Channel> channelPool) {
68
@Override
69
public synchronized Channel getChannel() {
70
checkState(state.equals(State.OPEN), "Channel pool is not open.");
71
- checkState(
72
- numberOfUsersOfCachedChannel >= 0,
73
- "Number of users of cached channel must be non-negative.");
74
checkState(
75
numberOfUsersOfCachedChannel < MAX_NUMBER_USERS_OF_CACHED_CHANNEL,
76
"Max number of channels have been retrieved from the channel pool.");
0 commit comments