作者 邓超

sync

@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 $pm = new \Swoole\Process\Manager(); 5 $pm = new \Swoole\Process\Manager();
6 6
7 // 启动业务进程 7 // 启动业务进程
8 -$pm->addBatch(5,function (\Swoole\Process\Pool $pool, int $worker_id){ 8 +$pm->addBatch(2,function (\Swoole\Process\Pool $pool, int $worker_id){
9 //error_reporting(); 9 //error_reporting();
10 include_once __DIR__."/../vendor/autoload.php"; 10 include_once __DIR__."/../vendor/autoload.php";
11 11