From e065b650ad2d3b0c58fe73fa75c9f730a36eee86 Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Sun, 28 Jan 2018 18:33:32 +0300 Subject: Context --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 911b5859..3eb0787e 100644 --- a/README.md +++ b/README.md @@ -50,9 +50,9 @@ use Spiral\RoadRunner; $rr = new RoadRunner\Worker($relay); -while ($in = $rr->receive($context)) { +while ($body = $rr->receive($context)) { try { - $rr->send((string)$in, (string)$context); + $rr->send((string)$body, (string)$context); } catch (\Throwable $e) { $rr->error((string)$e); } -- cgit v1.2.3