Skip to content

Commit bb5d89a

Browse files
committed
Removed variables
1 parent 7685091 commit bb5d89a

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

config/kafka.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
* You need to set proper values in `.env`.
77
*/
88
return [
9-
109
/*
1110
* Driver name
1211
*/

src/Queue/Jobs/KafkaJob.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Rapide\LaravelQueueKafka\Queue\Jobs;
44

55
use Exception;
6-
use Illuminate\Container\Container;
76
use Illuminate\Contracts\Queue\Job as JobContract;
87
use Illuminate\Database\DetectsDeadlocks;
98
use Illuminate\Queue\Jobs\Job;
@@ -16,13 +15,7 @@ class KafkaJob extends Job implements JobContract
1615
{
1716
use DetectsDeadlocks;
1817

19-
/**
20-
* Same as RabbitMQQueue, used for attempt counts.
21-
*/
22-
const ATTEMPT_COUNT_HEADERS_KEY = 'attempts_count';
23-
2418
protected $connection;
25-
protected $channel;
2619
protected $queue;
2720
protected $message;
2821

@@ -37,7 +30,8 @@ public function __construct(
3730
KafkaQueue $connection,
3831
Message $message,
3932
$queue
40-
) {
33+
)
34+
{
4135
$this->connection = $connection;
4236
$this->queue = $queue;
4337
$this->message = $message;

src/Queue/KafkaQueue.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,6 @@ private function getTopic($queue)
170170
* Sets the correlation id for a message to be published.
171171
*
172172
* @param string $id
173-
*
174-
* @return void
175173
*/
176174
public function setCorrelationId($id)
177175
{

0 commit comments

Comments
 (0)