This commit is contained in:
2021-04-01 10:49:00 +08:00
parent 0e57b85d01
commit 2a1f984be8
+1
View File
@@ -105,6 +105,7 @@ class Producer extends Component
} else if (!isset($consumers['groupId'])) {
$consumers['groupId'] = $topic . ':' . Snowflake::localhost();
}
var_dump($consumers['groupId'], $consumers['brokers'], $topic);
$this->setGroupId($consumers['groupId'])->setTopic($topic)
->setBrokers($consumers['brokers'])
->delivery(swoole_serialize($params));