作者 邓超

x

@@ -37,8 +37,8 @@ class SendJob { @@ -37,8 +37,8 @@ class SendJob {
37 } 37 }
38 38
39 $this->go_($list); 39 $this->go_($list);
40 -  
41 - 40 + // 防止协程太快
  41 + co::sleep(1);
42 } 42 }
43 }else{ 43 }else{
44 _echo('没有找到任务'); 44 _echo('没有找到任务');
@@ -208,7 +208,7 @@ class SendJob { @@ -208,7 +208,7 @@ class SendJob {
208 $pm = new Process\Manager(); 208 $pm = new Process\Manager();
209 209
210 // 启动业务进程 210 // 启动业务进程
211 -$pm->addBatch(2,function (Process\Pool $pool, int $worker_id) { 211 +$pm->addBatch(3,function (Process\Pool $pool, int $worker_id) {
212 if($worker_id==0){ 212 if($worker_id==0){
213 $time = time(); 213 $time = time();
214 while (1){ 214 while (1){