This commit is contained in:
2021-08-05 15:55:27 +08:00
parent a9e172b975
commit 6b9ef31df8
10 changed files with 95 additions and 70 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ use Snowflake\Snowflake;
/** @var KafkaProvider $container */
$container = Snowflake::app()->get('kafka-container');
$container->addConsumer($this->topic, [$class, 'onHandler']);
$container->addConsumer($this->topic, $class);
return true;
}