开启协程

This commit is contained in:
2025-11-05 17:00:36 +08:00
parent 1555d77ae9
commit 24def09ea4
3 changed files with 3 additions and 52 deletions

View File

@@ -22,6 +22,7 @@ return [
'worker' => [
'handler' => BusinessWorker::class,
'count' => cpu_count()*2,
'eventLoop' => \Workerman\Events\Swoole::class,
'constructor' => ['config' => [
'eventHandler' => plugin\webman\gateway\Events::class,
'name' => 'ChatBusinessWorker',

View File

@@ -13,7 +13,6 @@
*/
use app\process\MessagePushTask;
use app\process\RabbConsumApplySmsTemp;
use support\Log;
use support\Request;
use app\process\Http;
@@ -28,8 +27,8 @@ return [
'user' => '',
'group' => '',
'reusePort' => false,
'eventLoop' => '',
// 'eventLoop' => \Workerman\Events\Swoole::class,
// 'eventLoop' => '',
'eventLoop' => \Workerman\Events\Swoole::class,
'context' => [],
'constructor' => [
'requestClass' => Request::class,