Skip to content

Commit

Permalink
Removes unused imports and unused properties
Browse files Browse the repository at this point in the history
  • Loading branch information
joesantos418 committed Dec 1, 2021
1 parent 8a60f39 commit 4e4bf21
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion src/Commit/RetryableCommitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace Kafka\Consumer\Commit;

use Kafka\Consumer\Retry\Retryable;
use RdKafka\Exception;

/**
* Decorates a committer with retry logic
Expand Down
9 changes: 1 addition & 8 deletions src/Laravel/Console/Commands/PhpKafkaConsumerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
namespace Kafka\Consumer\Laravel\Console\Commands;

use Illuminate\Console\Command;
use Kafka\Consumer\Contracts\Consumer;
use Kafka\Consumer\Exceptions\InvalidCommitException;
use Kafka\Consumer\Exceptions\InvalidConsumerException;
use Kafka\Consumer\Laravel\Console\Commands\PhpKafkaConsumer\Options;
use Kafka\Consumer\Validators\Commands\PhpKafkaConsumer\Validator;

Expand All @@ -14,11 +11,7 @@ class PhpKafkaConsumerCommand extends Command
protected $signature = 'arquivei:php-kafka-consumer {--topic=*} {--consumer=} {--groupId=} {--commit=} {--dlq=} {--maxMessage=}';
protected $description = 'An Apache Kafka consumer in PHP';

private $dlq;
private $topics;
private $config;
private $groupId;
private $maxMessage;

public function __construct()
{
Expand All @@ -31,7 +24,7 @@ public function handle()
(new Validator())->validateOptions($this->options());
$options = $this->options();
$options['groupId'] = $options['groupId'] ?? $this->config['groupId'];
$options = new Options($this->options());
$options = new Options($options);

$consumer = $options->getConsumer();
$config = new \Kafka\Consumer\Entities\Config(
Expand Down

0 comments on commit 4e4bf21

Please sign in to comment.