summaryrefslogtreecommitdiff
path: root/tests/delay.php
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2020-12-14 13:27:35 +0300
committerWolfy-J <[email protected]>2020-12-14 13:27:35 +0300
commit00b42663891713f142a6cc67bcccdc31353daeb2 (patch)
tree1c3966f18c15f3815e47cb065917b314be23472c /tests/delay.php
parent8203dc4d76624f4fceddff49b8a1aba9d525fc73 (diff)
- removed old RoadRunner code
- added new RR source code
Diffstat (limited to 'tests/delay.php')
-rw-r--r--tests/delay.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/delay.php b/tests/delay.php
index bf9ecc12..f0435b05 100644
--- a/tests/delay.php
+++ b/tests/delay.php
@@ -8,9 +8,9 @@ use Spiral\RoadRunner;
$rr = new RoadRunner\Worker($relay);
-while ($in = $rr->receive($ctx)) {
+while ($in = $rr->waitPayload()) {
try {
- usleep($in * 1000);
+ usleep($in->body * 1000);
$rr->send('');
} catch (\Throwable $e) {
$rr->error((string)$e);