Skip to content

Commit f58dfa5

Browse files
committed
优化代码
1 parent 8ddc575 commit f58dfa5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Diff for: src/Service/BaseQueueConsumer.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,7 @@ public function run(ITaskParam $param)
122122
'task' => $task,
123123
]);
124124
}
125-
while($pool->isRunning())
126-
{
127-
Coroutine::sleep(0.1);
128-
}
125+
$pool->wait();
129126
}
130127
else
131128
{

0 commit comments

Comments
 (0)