Skip to content

Commit fec6fc0

Browse files
committed
Added usleep 200ms when no messages are recieved
1 parent 65ef81a commit fec6fc0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/dbal/DbalSubscriptionConsumer.php

+2
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ public function consume(int $timeout = 0): void
7777
unset($currentQueueNames[$message['queue']]);
7878
} else {
7979
$currentQueueNames = [];
80+
81+
usleep(200000); // 200ms
8082
}
8183

8284
if ($timeout && microtime(true) >= $endAt) {

0 commit comments

Comments
 (0)