This commit is contained in:
2021-01-12 17:36:53 +08:00
parent 28eaa54f57
commit 2c77e30ca2
+2
View File
@@ -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());
} }
});
} }