改名
This commit is contained in:
+1
-1
@@ -35,7 +35,7 @@ class Kafka extends \Snowflake\Process\Process
|
|||||||
$this->channelListener();
|
$this->channelListener();
|
||||||
[$config, $conf] = $this->kafkaConfig();
|
[$config, $conf] = $this->kafkaConfig();
|
||||||
$consumer = new \RdKafka\Consumer($config);
|
$consumer = new \RdKafka\Consumer($config);
|
||||||
$consumer->addBrokers($config['brokers']);
|
$consumer->addBrokers($conf['brokers']);
|
||||||
|
|
||||||
$topic = $consumer->newTopic("test");
|
$topic = $consumer->newTopic("test");
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|||||||
Reference in New Issue
Block a user