改名
This commit is contained in:
@@ -63,6 +63,7 @@ class Kafka extends \Snowflake\Process\Process
|
||||
*/
|
||||
public function initCoroutine()
|
||||
{
|
||||
go(function () {
|
||||
$group = new WaitGroup();
|
||||
while ([$topic, $part, $message] = $this->channel->pop()) {
|
||||
try {
|
||||
@@ -86,6 +87,7 @@ class Kafka extends \Snowflake\Process\Process
|
||||
}
|
||||
}
|
||||
$group->wait();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user