Skip to content

Commit

Permalink
Some adjustments to make version 6 work (#13)
Browse files Browse the repository at this point in the history
* Change to new binLogCurrent property in heartbeat method

* Minor adjustments. Add use and fix small typo.
  • Loading branch information
cyppe committed Jun 6, 2024
1 parent a166187 commit 155c7e1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Console/StartCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function handle()

$this->info('Subscribers');
$this->table(
['Subscriber', 'Registerd'],
['Subscriber', 'Registered'],
collect($trigger->getSubscribers())
->transform(fn ($subscriber) => [$subscriber, ''])
);
Expand Down
2 changes: 2 additions & 0 deletions src/Facades/Trigger.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
namespace Huangdijia\Trigger\Facades;

use Illuminate\Support\Facades\Facade;
use MySQLReplication\BinLog\BinLogCurrent;
use MySQLReplication\Event\DTO\EventDTO;

/**
* @see \Huangdijia\Trigger\Manager
Expand Down
2 changes: 1 addition & 1 deletion src/Trigger.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public function isTerminated(): bool
*/
public function heartbeat(EventDTO $event): void
{
$this->rememberCurrent($event->getEventInfo()->getBinLogCurrent());
$this->rememberCurrent($event->getEventInfo()->binLogCurrent);
}

/**
Expand Down

0 comments on commit 155c7e1

Please sign in to comment.