refactor: remove ClusterClient streaming path (DebugStreamEvent), events flow via gRPC
This commit is contained in:
@@ -86,8 +86,6 @@ public class CentralCommunicationActor : ReceiveActor
|
||||
// Route enveloped messages to sites
|
||||
Receive<SiteEnvelope>(HandleSiteEnvelope);
|
||||
|
||||
// Route debug stream events from sites to the correct bridge actor
|
||||
Receive<Commons.Messages.DebugView.DebugStreamEvent>(HandleDebugStreamEvent);
|
||||
}
|
||||
|
||||
private void HandleHeartbeat(HeartbeatMessage heartbeat)
|
||||
@@ -96,18 +94,6 @@ public class CentralCommunicationActor : ReceiveActor
|
||||
Context.Parent.Tell(heartbeat);
|
||||
}
|
||||
|
||||
private void HandleDebugStreamEvent(Commons.Messages.DebugView.DebugStreamEvent msg)
|
||||
{
|
||||
if (_debugSubscriptions.TryGetValue(msg.CorrelationId, out var entry))
|
||||
{
|
||||
entry.Subscriber.Tell(msg.Event);
|
||||
}
|
||||
else
|
||||
{
|
||||
_log.Debug("No debug subscription found for correlationId {0}, dropping event", msg.CorrelationId);
|
||||
}
|
||||
}
|
||||
|
||||
private void HandleSiteHealthReport(SiteHealthReport report)
|
||||
{
|
||||
var aggregator = _serviceProvider.GetService<ICentralHealthAggregator>();
|
||||
|
||||
Reference in New Issue
Block a user