top-think/think-worker

GatewayWorker.php 行缺少默认数值 option未生效 新版本的缺少上面的参数,导致onMessage错误

Opened this issue · 0 comments

// 以下参数都可以在配置文件中的businessWorker参数中设置
$worker->name = 'BusinessWorker';
$worker->count = 1;
$worker->eventHandler = !empty($option['event_handler']) ? $option['event_handler'] : '\think\worker\Events';
//新版本的缺少上面的参数,导致onMessage错误
$this->option($worker, $option);
问题参数