改名
This commit is contained in:
@@ -108,6 +108,9 @@ class Producer extends Component
|
|||||||
} else if (!isset($consumers['groupId'])) {
|
} else if (!isset($consumers['groupId'])) {
|
||||||
$consumers['groupId'] = $topic . ':' . Snowflake::localhost();
|
$consumers['groupId'] = $topic . ':' . Snowflake::localhost();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var_dump(swoole_serialize($params));
|
||||||
|
|
||||||
$this->setGroupId($groupId)->setTopic($topic)
|
$this->setGroupId($groupId)->setTopic($topic)
|
||||||
->setBrokers($consumers['brokers'])
|
->setBrokers($consumers['brokers'])
|
||||||
->delivery(swoole_serialize($params));
|
->delivery(swoole_serialize($params));
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ class Struct
|
|||||||
*/
|
*/
|
||||||
public function __construct($topic, Message $message)
|
public function __construct($topic, Message $message)
|
||||||
{
|
{
|
||||||
var_dump($message->payload);
|
|
||||||
$message->payload = swoole_unserialize($message->payload);
|
$message->payload = swoole_unserialize($message->payload);
|
||||||
|
|
||||||
$this->topic = $topic;
|
$this->topic = $topic;
|
||||||
|
|||||||
@@ -671,7 +671,6 @@ if (!function_exists('swoole_serialize')) {
|
|||||||
*/
|
*/
|
||||||
function swoole_serialize($data): string
|
function swoole_serialize($data): string
|
||||||
{
|
{
|
||||||
var_dump(class_exists('swoole_serialize'));
|
|
||||||
if (class_exists('swoole_serialize')) {
|
if (class_exists('swoole_serialize')) {
|
||||||
return \swoole_serialize::pack($data);
|
return \swoole_serialize::pack($data);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user