From 11ed179be4cbd14bf3abb86ad8da62f12d2c28a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20=C3=81lvarez?= Date: Fri, 22 Nov 2019 20:40:50 +0100 Subject: [PATCH] log --- promises/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/promises/index.php b/promises/index.php index 8b9725e..7866911 100644 --- a/promises/index.php +++ b/promises/index.php @@ -6,7 +6,7 @@ require_once(dirname(__FILE__) .'/vendor/autoload.php'); // lib.php, helper functions Lib\plain(); -Lib\printf('load'); +Lib\printf('https://sergio.am/code/www-tests'); use GuzzleHttp\Client; use GuzzleHttp\Promise; @@ -25,8 +25,8 @@ $requests = function ($n) use ($client) { for ($i = 0; $i < $n; $i++) { yield function() use ($client, $uri, $i) { - Lib\printf(' yield '. $i); - return $client->getAsync($uri . http_build_query(['o' => $i, 's' => random_int(1, 5)])); + Lib\printf(' yield i='. $i); + return $client->getAsync($uri . http_build_query(['i' => $i, 's' => random_int(1, 5)])); }; } };