开启协程 test

This commit is contained in:
ASUS 2025-11-05 17:04:30 +08:00
parent 24def09ea4
commit cc2eabe050
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -28,7 +28,7 @@ return [
'group' => '', 'group' => '',
'reusePort' => false, 'reusePort' => false,
// 'eventLoop' => '', // 'eventLoop' => '',
'eventLoop' => \Workerman\Events\Swoole::class, 'eventLoop' => \Workerman\Events\Swoole1::class,
'context' => [], 'context' => [],
'constructor' => [ 'constructor' => [
'requestClass' => Request::class, 'requestClass' => Request::class,