Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tuoerlove opened this issue Nov 24, 2020 · 0 comments

Comments

@tuoerlove
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant