Skip to content

Commit ff4ff35

Browse files
committed
feature:inject AsyncTaskSynchronizer to taskMethod
1 parent 67157ac commit ff4ff35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/command/AsyncTaskService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function start(string $host, int $port, array $option = []){
9393
$taskSynchronizer = new AsyncTaskSynchronizer($taskKey, $option['synchronizer_ttl']);
9494
try{
9595
$class = is_object($taskClass) ?: app($taskClass);
96-
$class->$taskMethod($taskData);
96+
$class->$taskMethod($taskData, $taskSynchronizer);
9797
}catch (Exception $e){
9898
$taskSynchronizer->error($e->getMessage());
9999
}

0 commit comments

Comments
 (0)