refactor
[m6w6/seekat] / examples / hooks.php
index ad236925ffbcde60278c96dce3eed549e7b9e06f..37cb8e0ed2f895f9e58d3d4dbcf6b6f11ea4d0de 100755 (executable)
@@ -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) {