File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/Symfony/Component/Messenger/Bridge/Redis/Transport Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -523,11 +523,7 @@ public function cleanup(): void
523
523
524
524
public function getMessageCount (): int
525
525
{
526
- $ groups = $ this ->connection ->xinfo ('GROUPS ' , $ this ->stream );
527
-
528
- if (false === $ groups ) {
529
- throw new LogicException (sprintf ('No group found for stream "%s". ' , $ this ->stream ));
530
- }
526
+ $ groups = $ this ->connection ->xinfo ('GROUPS ' , $ this ->stream ) ?: [];
531
527
532
528
$ lastDeliveredId = null ;
533
529
foreach ($ groups as $ group ) {
@@ -540,6 +536,10 @@ public function getMessageCount(): int
540
536
return $ group ['lag ' ];
541
537
}
542
538
539
+ if (!isset ($ group ['last-delivered-id ' ])) {
540
+ return 0 ;
541
+ }
542
+
543
543
$ lastDeliveredId = $ group ['last-delivered-id ' ];
544
544
break ;
545
545
}
You can’t perform that action at this time.
0 commit comments