Skip to content

Commit

Permalink
fix jetstream queue example
Browse files Browse the repository at this point in the history
  • Loading branch information
nekufa committed Mar 14, 2024
1 parent 2d9ad0b commit d22a579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ $goodbyer
$queue = $goodbyer->getQueue();
while ($message = $queue->next()) {
if (rand(1, 10) % 2 == 0) {
mail($address, "See you later");
mail($message->payload, "See you later");
$message->ack();
} else {
// not ack with 1 second timeout
Expand Down

0 comments on commit d22a579

Please sign in to comment.