diff options
author | Wolfy-J <[email protected]> | 2020-12-14 13:27:35 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2020-12-14 13:27:35 +0300 |
commit | 00b42663891713f142a6cc67bcccdc31353daeb2 (patch) | |
tree | 1c3966f18c15f3815e47cb065917b314be23472c /tests/head.php | |
parent | 8203dc4d76624f4fceddff49b8a1aba9d525fc73 (diff) |
- removed old RoadRunner code
- added new RR source code
Diffstat (limited to 'tests/head.php')
-rw-r--r-- | tests/head.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/head.php b/tests/head.php index 88ebd3f2..3c57258f 100644 --- a/tests/head.php +++ b/tests/head.php @@ -8,9 +8,9 @@ use Spiral\RoadRunner; $rr = new RoadRunner\Worker($relay); -while ($in = $rr->receive($ctx)) { +while ($in = $rr->waitPayload()) { try { - $rr->send("", (string)$ctx); + $rr->send("", (string)$in->header); } catch (\Throwable $e) { $rr->error((string)$e); } |