Skip to content

Commit a8adf1c

Browse files
authored
fix
Problem: The RequestSchedulerInterface was not registered as a singleton/shared in the dependency injection container. Because of this, the Engine received one instance of the scheduler, while the RetryMiddleware received a completely different, new instance. As a result, they operated with separate queues.
1 parent b681cbd commit a8adf1c

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)