Skip to content

Commit

Permalink
remove unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
okaufmann committed Nov 8, 2022
1 parent d10ee44 commit 0e5437f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/Commands/LaravelHorizonDoctorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ public function handle(): int
$errors[] = "Queue `{$queueConnection['queue']}` should be added to the `{$key}['queue']` array in config/horizon.php";
}

// check that horizon queues are set in connection
if ([$queueConnection['queue']] !== $horizonConfig['queue']) {
$diff = implode(',', array_diff($horizonConfig['queue'], [$queueConnection['queue']]));
$errors[] = "Queue `{$queueConnection['queue']}` should be the only queue in the `{$key}['queue']` array in config/horizon.php ({$diff} are not provided by this connection)";
}

// check that horizon queue has a timout option
if (! isset($horizonConfig['timeout'])) {
$errors[] = "You should consider setting the `timeout` option for `{$key}` in config/horizon.php";
Expand Down

0 comments on commit 0e5437f

Please sign in to comment.