改名
This commit is contained in:
@@ -118,6 +118,7 @@ class Kafka extends \Snowflake\Process\Process
|
|||||||
*/
|
*/
|
||||||
protected function handlerExecute($topic, $message)
|
protected function handlerExecute($topic, $message)
|
||||||
{
|
{
|
||||||
|
go(function () use ($topic, $message) {
|
||||||
try {
|
try {
|
||||||
$topic = str_replace('-', '_', $topic);
|
$topic = str_replace('-', '_', $topic);
|
||||||
|
|
||||||
@@ -133,6 +134,7 @@ class Kafka extends \Snowflake\Process\Process
|
|||||||
} catch (Throwable $exception) {
|
} catch (Throwable $exception) {
|
||||||
$this->application->error($exception->getMessage());
|
$this->application->error($exception->getMessage());
|
||||||
}
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user