Skip to content

Commit f3199f3

Browse files
author
Alexandru Scvortov
committed
inline a function
1 parent 33619b7 commit f3199f3

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

test/src/com/rabbitmq/examples/MulticastMain.java

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -306,14 +306,6 @@ private void logAck(long seqNum) {
306306
}
307307
}
308308

309-
private void canPublish()
310-
throws InterruptedException
311-
{
312-
if (confirmPool != null) {
313-
confirmPool.acquire();
314-
}
315-
}
316-
317309
public void run() {
318310

319311
long now;
@@ -324,7 +316,9 @@ public void run() {
324316
try {
325317

326318
while (timeLimit == 0 || now < startTime + timeLimit) {
327-
canPublish();
319+
if (confirmPool != null) {
320+
confirmPool.acquire();
321+
}
328322
delay(now);
329323
publish(createMessage(totalMsgCount));
330324
totalMsgCount++;

0 commit comments

Comments
 (0)