This commit is contained in:
2021-03-24 17:34:25 +08:00
parent f7bf93a1f3
commit 2610267aba
+1 -1
View File
@@ -35,7 +35,7 @@ class Async extends Component
* @param array $params
* @throws Exception
*/
public function dispatch(string $name, array $params)
public function dispatch(string $name, array $params = [])
{
$server = Snowflake::app()->getSwoole();
if (!isset($server->setting['task_worker_num'])) {