Removed replicator-message-published
This commit is contained in:
parent
0ca6355aa6
commit
6a04f9ce4c
|
|
@ -428,7 +428,7 @@
|
||||||
return 'bg-red-700 text-white';
|
return 'bg-red-700 text-white';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (['api_message', 'replicator-message-published', 'replicator-message-received'].includes(log.type)) {
|
if (['api_message', 'replicator-message-received'].includes(log.type)) {
|
||||||
return 'bg-black text-white';
|
return 'bg-black text-white';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -287,13 +287,6 @@ class RedisChannelManager extends LocalChannelManager
|
||||||
$payload->socketId = $socketId;
|
$payload->socketId = $socketId;
|
||||||
$payload->serverId = $serverId ?: $this->getServerId();
|
$payload->serverId = $serverId ?: $this->getServerId();
|
||||||
|
|
||||||
DashboardLogger::log($appId, DashboardLogger::TYPE_REPLICATOR_MESSAGE_PUBLISHED, [
|
|
||||||
'fromServerId' => $serverId,
|
|
||||||
'fromSocketId' => $socketId,
|
|
||||||
'channel' => $channel,
|
|
||||||
'payload' => $payload,
|
|
||||||
]);
|
|
||||||
|
|
||||||
return $this->publishClient
|
return $this->publishClient
|
||||||
->publish($this->getRedisKey($appId, $channel), json_encode($payload))
|
->publish($this->getRedisKey($appId, $channel), json_encode($payload))
|
||||||
->then(function () use ($appId, $socketId, $channel, $payload, $serverId) {
|
->then(function () use ($appId, $socketId, $channel, $payload, $serverId) {
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,6 @@ class DashboardLogger
|
||||||
|
|
||||||
const TYPE_REPLICATOR_UNSUBSCRIBED = 'replicator-unsubscribed';
|
const TYPE_REPLICATOR_UNSUBSCRIBED = 'replicator-unsubscribed';
|
||||||
|
|
||||||
const TYPE_REPLICATOR_MESSAGE_PUBLISHED = 'replicator-message-published';
|
|
||||||
|
|
||||||
const TYPE_REPLICATOR_MESSAGE_RECEIVED = 'replicator-message-received';
|
const TYPE_REPLICATOR_MESSAGE_RECEIVED = 'replicator-message-received';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -39,7 +37,6 @@ class DashboardLogger
|
||||||
self::TYPE_API_MESSAGE,
|
self::TYPE_API_MESSAGE,
|
||||||
self::TYPE_REPLICATOR_SUBSCRIBED,
|
self::TYPE_REPLICATOR_SUBSCRIBED,
|
||||||
self::TYPE_REPLICATOR_UNSUBSCRIBED,
|
self::TYPE_REPLICATOR_UNSUBSCRIBED,
|
||||||
self::TYPE_REPLICATOR_MESSAGE_PUBLISHED,
|
|
||||||
self::TYPE_REPLICATOR_MESSAGE_RECEIVED,
|
self::TYPE_REPLICATOR_MESSAGE_RECEIVED,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue