Skip to content

Commit

Permalink
Align comment
Browse files Browse the repository at this point in the history
  • Loading branch information
codeliner committed Apr 30, 2018
1 parent 5e74bde commit dd0c300
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Projection/PdoEventStoreProjector.php
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ private function shouldUpdateLock(DateTimeImmutable $now): bool

$intervalSeconds = floor($this->updateLockThreshold / 1000);

//Create a 0 interval
//Create an interval based on seconds
$updateLockThreshold = new \DateInterval("PT{$intervalSeconds}S");
//and manually add split seconds
$updateLockThreshold->f = ($this->updateLockThreshold % 1000) / 1000;
Expand Down
2 changes: 1 addition & 1 deletion src/Projection/PdoEventStoreReadModelProjector.php
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ private function shouldUpdateLock(DateTimeImmutable $now): bool

$intervalSeconds = floor($this->updateLockThreshold / 1000);

//Create a 0 interval
//Create an interval based on seconds
$updateLockThreshold = new \DateInterval("PT{$intervalSeconds}S");
//and manually add split seconds
$updateLockThreshold->f = ($this->updateLockThreshold % 1000) / 1000;
Expand Down

0 comments on commit dd0c300

Please sign in to comment.