Skip to content

Commit ae5f94c

Browse files
authored
Update QueueHandler.php
1 parent 9fd7224 commit ae5f94c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Queue/QueueHandler.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,9 @@ public function handleSqs(SqsEvent $event, Context $context): void
8484
'isDownForMaintenance' => fn () => MaintenanceMode::active(),
8585
]);
8686

87-
/** @var Cache $cache */
88-
$cache = $this->container->make(Cache::class);
89-
90-
$worker->setCache($cache);
87+
$worker->setCache(
88+
$this->container->make(Cache::class)
89+
);
9190

9291
foreach ($event->getRecords() as $sqsRecord) {
9392
$timeout = $this->calculateJobTimeout($context->getRemainingTimeInMillis());

0 commit comments

Comments
 (0)