We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2330f71 commit f6e086cCopy full SHA for f6e086c
src/com/rabbitmq/client/impl/WorkPool.java
@@ -85,12 +85,12 @@ private WorkQueue(int maxLengthWhenLimited) {
85
this.maxLengthWhenLimited = maxLengthWhenLimited;
86
}
87
88
- public boolean put(T t) throws InterruptedException {
+ public void put(T t) throws InterruptedException {
89
if (limited && list.size() > maxLengthWhenLimited) {
90
assert !semaphore.hasQueuedThreads();
91
semaphore.acquire();
92
93
- return list.offer(t);
+ list.add(t);
94
95
96
public T poll() {
0 commit comments