Skip to content

Commit 3bed2b6

Browse files
committed
fix: make RequestSchedulerInterface a singleton
RequestSchedulerInterface was not registered as singleton. Engine and RetryMiddleware received different scheduler instances. This resulted in separate queues instead of a shared one.
1 parent e7de9e1 commit 3bed2b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Core/DefaultContainer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ private function registerDefaultBindings(): void
7272
EventDispatcher::class,
7373
);
7474
$this->container->add(ClockInterface::class, SystemClock::class);
75-
$this->container->add(
75+
$this->container->addShared(
7676
RequestSchedulerInterface::class,
7777
/** @phpstan-ignore return.type */
7878
fn (): RequestSchedulerInterface => $this->container->get(ArrayRequestScheduler::class),

0 commit comments

Comments
 (0)