Skip to content

Commit 861b4fc

Browse files
committed
Cleanup
1 parent 2c5ac3f commit 861b4fc

File tree

3 files changed

+2
-50
lines changed

3 files changed

+2
-50
lines changed

src/AppConfig.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use craft\cloud\fs\TmpFs;
88
use craft\cloud\Helper as CloudHelper;
99
use craft\cloud\queue\SqsQueue;
10-
use craft\cloud\queue\SqsQueueLegacy;
1110
use craft\cloud\runtime\event\CliHandler;
1211
use craft\cloud\web\AssetManager;
1312
use craft\db\Table;
@@ -16,7 +15,6 @@
1615
use craft\helpers\App;
1716
use craft\log\MonologTarget;
1817
use craft\queue\Queue as CraftQueue;
19-
use craft\queue\ReleasableQueueInterface;
2018
use yii\redis\Cache;
2119
use yii\web\DbSession;
2220

@@ -100,7 +98,7 @@ private function getQueue(): \Closure
10098
'class' => CraftQueue::class,
10199
'ttr' => CliHandler::MAX_EXECUTION_SECONDS,
102100
'proxyQueue' => Module::getInstance()->getConfig()->useQueue ? [
103-
'class' => interface_exists(ReleasableQueueInterface::class) ? SqsQueue::class : SqsQueueLegacy::class,
101+
'class' => SqsQueue::class,
104102
'ttr' => CliHandler::MAX_EXECUTION_SECONDS,
105103
'url' => Module::getInstance()->getConfig()->sqsUrl,
106104
'region' => Module::getInstance()->getConfig()->getRegion(),

src/queue/SqsQueue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Craft;
66

7-
class SqsQueue extends SqsQueueLegacy implements ReleasableQueueInterface
7+
class SqsQueue extends \yii\queue\sqs\Queue implements ReleasableQueueInterface
88
{
99
protected function pushMessage($message, $ttr, $delay, $priority): string
1010
{

src/queue/SqsQueueLegacy.php

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)