Skip to content

Commit

Permalink
Merge pull request #1 from mixxx73/master
Browse files Browse the repository at this point in the history
fixes disabling listeners in replay stream command
  • Loading branch information
nixilla committed Feb 18, 2019
2 parents 68100bd + b8b08ea commit 6ad6640
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions spec/Command/ReplayStreamCommandSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ function it_can_replay_all_messages(
$output->isDecorated()->shouldBeCalled();
$output->getVerbosity()->shouldBeCalled();

$eventBus->disableListeners()->shouldBeCalled();
$eventBus->dispatch(Argument::any())->shouldBeCalled();

$this->execute($input, $output);
Expand Down
1 change: 1 addition & 0 deletions src/Command/ReplayStreamCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public function configure()

public function execute(InputInterface $input, OutputInterface $output)
{
$this->eventBus->disableListeners();
$output->writeln('<fg=green>[chgst]</> Replaying all events in the event stream');

$progressBar = new ProgressBar($output, $this->batchSize);
Expand Down

0 comments on commit 6ad6640

Please sign in to comment.