summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-01-28 18:33:32 +0300
committerWolfy-J <[email protected]>2018-01-28 18:33:32 +0300
commite065b650ad2d3b0c58fe73fa75c9f730a36eee86 (patch)
tree8edbd114be608aa4517b27f54f1ef89d4dd8422c /README.md
parente94299b8a4d0bc987d630dc9067fc71187d9c99f (diff)
Context
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files 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);
}