提交 351ddf75 编写于 作者: weixin_47267244's avatar weixin_47267244

修复未启用 task_enable_coroutine 时在 Task 进程使用连接池的问题

上级 e8656813
......@@ -40,7 +40,7 @@ class BeforeWorkerStart implements IWorkerStartEventListener
{
App::set(ProcessAppContexts::PROCESS_TYPE, ProcessType::TASK_WORKER, true);
// 一键协程化
if (Config::get('@app.enableCoroutine', true) && Config::get('@app.mainServer.configs.task_enable_coroutine', true))
if (Config::get('@app.enableCoroutine', true) && Config::get('@app.mainServer.configs.task_enable_coroutine', false))
{
\Swoole\Runtime::enableCoroutine(true);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册