Skip to content
This repository was archived by the owner on Jul 17, 2024. It is now read-only.

Commit 3afda44

Browse files
fix consumer timing out whilst waiting for partition assignment
1 parent 3924a27 commit 3afda44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/KafkaPubSubAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function subscribe($channel, callable $handler)
6161
$isSubscriptionLoopActive = true;
6262

6363
while ($isSubscriptionLoopActive) {
64-
$message = $this->consumer->consume(300);
64+
$message = $this->consumer->consume(120*1000);
6565

6666
if ($message === null) {
6767
continue;

0 commit comments

Comments
 (0)