作者 邓超

优化同步

... ... @@ -21,7 +21,7 @@ function start(){
include_once __DIR__."/../vendor/autoload.php";
_echo("业务进程({$worker_id})启动成功");
\Lib\DbPool::$clientNumber = 60;
$goNum = 0;
// 循环阻塞
while (true){
... ...
... ... @@ -5,7 +5,7 @@ include_once __DIR__."/../vendor/autoload.php";
swoole_set_process_name('php-email-sync-list-my');
\Lib\DbPool::$clientNumber = 600;
\Lib\DbPool::$clientNumber = 60;
\Co\run(function (){
$goNum = 0;
... ...