Skip to content

Commit 312603c

Browse files
committed
minor #19953 [Messenger] Update messenger.rst (svdv22)
This PR was merged into the 6.4 branch. Discussion ---------- [Messenger] Update messenger.rst Was confused for a second because getBatchSize was introduced in 6.4 but according to the docs it wasn't used. It is according to the actual code so here's the fix. See https://github.com/symfony/messenger/blob/6.4/Handler/BatchHandlerTrait.php#L58C9-L58C61 Commits ------- 4e2c66d Update messenger.rst
2 parents 2a17035 + 4e2c66d commit 312603c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

messenger.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2644,7 +2644,7 @@ provided in order to ease the declaration of these special handlers::
26442644
// of the trait to define your own batch size...
26452645
private function shouldFlush(): bool
26462646
{
2647-
return 100 <= \count($this->jobs);
2647+
return $this->getBatchSize() <= \count($this->jobs);
26482648
}
26492649

26502650
// ... or redefine the `getBatchSize()` method if the default

0 commit comments

Comments
 (0)