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)])); }; } };