X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fseekat;a=blobdiff_plain;f=examples%2Fhooks.php;fp=examples%2Fhooks.php;h=37cb8e0ed2f895f9e58d3d4dbcf6b6f11ea4d0de;hp=ad236925ffbcde60278c96dce3eed549e7b9e06f;hb=2451d97f1cb7b97e445b4dd839835b8673a4d0fc;hpb=3958595e9ff27162ae918db1453ddecd4840d481 diff --git a/examples/hooks.php b/examples/hooks.php index ad23692..37cb8e0 100755 --- a/examples/hooks.php +++ b/examples/hooks.php @@ -9,6 +9,7 @@ $cli = new http\Client("curl", "seekat"); $cli->configure([ "max_host_connections" => 10, "max_total_connections" => 50, + "use_eventloop" => false, ]); $log = new Monolog\Logger("seekat"); @@ -24,7 +25,7 @@ $api(function() use($api) { "affiliation" => "owner" ]); while ($repos) { - $next = $repos->next(); + $next = next($repos); $batch = []; foreach ($repos as $repo) {