Skip to content

Commit

Permalink
setMaxSteps is private
Browse files Browse the repository at this point in the history
  • Loading branch information
Spamercz committed Jun 20, 2019
1 parent 91eadc5 commit cc2aa8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/DumpIndex.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function execute(
$this->bulkData = '';
$result = $this->scroll->execute($elasticQuery, $index, $type);
if ($progressBar->getMaxSteps() === 0) {
$progressBar->setMaxSteps($result->stats()->total());
$progressBar->start($result->stats()->total());
}

/** @var \Spameri\ElasticQuery\Response\Result\Hit $hit */
Expand Down

0 comments on commit cc2aa8f

Please sign in to comment.