Skip to content

Commit

Permalink
Update Adapter.php
Browse files Browse the repository at this point in the history
  • Loading branch information
aphraoh authored Mar 25, 2024
1 parent 1c18200 commit 26af6bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ public function withChannel(string $channel): self
/**
* Takes one message from waiting list and reserves it for handling.
*
* @return array|false payload
* @return array|null payload
* @throws \Exception in case it hasn't waited the lock
*/
protected function reserve()
protected function reserve(): array|null

Check warning on line 116 in src/Adapter.php

View check run for this annotation

Codecov / codecov/patch

src/Adapter.php#L116

Added line #L116 was not covered by tests
{
// TWK TODO ??? return $this->db->useMaster(function () {
// TWK TODO ??? if (!$this->mutex->acquire(__CLASS__ . $this->channel, $this->mutexTimeout)) {
Expand Down

0 comments on commit 26af6bb

Please sign in to comment.