From d22a579fed3e6a0f70bc3324189e4995dd2b737f Mon Sep 17 00:00:00 2001 From: dmitry krokhin Date: Thu, 14 Mar 2024 17:34:16 +0300 Subject: [PATCH] fix jetstream queue example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 79d051f..3e84a51 100644 --- a/README.md +++ b/README.md @@ -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