Skip to content

Commit f485aee

Browse files
committed
remove try/catch
1 parent 8cb04e8 commit f485aee

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Consumer.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,7 @@ public function daemon($connectionName, $queue, WorkerOptions $options): void
7373
null
7474
);
7575

76-
try {
77-
$jobClass = $connection->getJobClass();
78-
} catch (Throwable $exception) {
79-
report($exception);
80-
$this->kill(2);
81-
}
76+
$jobClass = $connection->getJobClass();
8277

8378
$this->channel->basic_consume(
8479
$queue,

0 commit comments

Comments
 (0)