diff --git a/config/plugin/webman/gateway-worker/process.php b/config/plugin/webman/gateway-worker/process.php index c9e5e44..0076bd6 100644 --- a/config/plugin/webman/gateway-worker/process.php +++ b/config/plugin/webman/gateway-worker/process.php @@ -22,7 +22,7 @@ return [ 'worker' => [ 'handler' => BusinessWorker::class, 'count' => cpu_count()*2, - 'eventLoop' => \Workerman\Events\Swoole::class, + 'eventLoop' => \Workerman\Events\Swoole1::class, 'constructor' => ['config' => [ 'eventHandler' => plugin\webman\gateway\Events::class, 'name' => 'ChatBusinessWorker', diff --git a/config/process.php b/config/process.php index b78cc89..9bd3fe0 100644 --- a/config/process.php +++ b/config/process.php @@ -28,7 +28,7 @@ return [ 'group' => '', 'reusePort' => false, // 'eventLoop' => '', - 'eventLoop' => \Workerman\Events\Swoole::class, + 'eventLoop' => \Workerman\Events\Swoole1::class, 'context' => [], 'constructor' => [ 'requestClass' => Request::class,