Skip to content

Commit

Permalink
Merge pull request #68 from tarfin-labs/WEB-4267-event-machine-makine…
Browse files Browse the repository at this point in the history
…-calisiyor-yeni-event-kabul-etmeye-hazir-durumlari

 WEB-4267-event-machine-makine-calisiyor-yeni-event-kabul-etmeye-hazir-durumlari
  • Loading branch information
deligoez authored Nov 22, 2023
2 parents 747c316 + a7a6ab4 commit c6e7e4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Actor/Machine.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public function send(
bool $shouldPersist = true,
): State {
if ($this->state !== null) {
$lock = Cache::lock('machine-id:'.$this->state->history->first()->root_event_id, 60);
$lock = Cache::lock('mre:'.$this->state->history->first()->root_event_id, 60);
}

if (isset($lock) && !$lock->get()) {
Expand Down
2 changes: 1 addition & 1 deletion tests/MachineTransitionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
$machine = AsdMachine::create();
$machine->persist();

$rootEventId = 'machine-id:'.$machine->state->history->first()->root_event_id;
$rootEventId = 'mre:'.$machine->state->history->first()->root_event_id;

Cache::shouldReceive('lock')
->once()
Expand Down

0 comments on commit c6e7e4e

Please sign in to comment.