Fix: Message::touch must not mark message as processed

This commit is contained in:
2021-07-08 18:35:31 +03:00
parent a913fb0907
commit e9dce19e25

View File

@ -63,7 +63,9 @@ final class Message
*/
public function touch(): Promise
{
$this->markAsProcessedOrFail();
if ($this->processed) {
throw MessageException::processed($this);
}
return $this->consumer->touch($this->id);
}