作者 邓超

job

@@ -8,10 +8,10 @@ $pm = new \Swoole\Process\Manager(); @@ -8,10 +8,10 @@ $pm = new \Swoole\Process\Manager();
8 $pm->addBatch(3,function (\Swoole\Process\Pool $pool, int $worker_id){ 8 $pm->addBatch(3,function (\Swoole\Process\Pool $pool, int $worker_id){
9 9
10 if($worker_id===0){ 10 if($worker_id===0){
11 - $i=600; 11 + $i=300;
12 while($i>0){ 12 while($i>0){
13 $i--; 13 $i--;
14 - co::sleep(1); 14 + co::sleep(5);
15 15
16 } 16 }
17 $pool->shutdown(); 17 $pool->shutdown();