This commit is contained in:
2021-01-28 11:27:53 +08:00
parent f8c79b148e
commit fb0d3a4b9b
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ class Async extends Component
*/
public function dispatch(Task $class)
{
$server = Snowflake::app()->server->getServer();
$server = Snowflake::app()->getSwoole();
if (!isset($server->setting['task_worker_num']) || !class_exists($class)) {
return;
}