fix forwarded message read state on proxy topics

This commit is contained in:
richjohnrambo
2026-09-24 17:24:46 +08:00
parent 31a70c0bac
commit 1f35d4f786
+4 -1
View File
@@ -57,7 +57,10 @@ func (t *Topic) runProxy(hub *Hub) {
case msg := <-t.serverMsg:
if msg.Data != nil {
t.broadcastToSessions(msg)
if err := globals.cluster.routeToTopicIntraCluster(t.name, msg, msg.sess); err != nil {
logs.Warn.Printf("topic proxy[%s]: route server data to master failed - %s", t.name, err)
t.handleProxyBroadcast(msg)
}
} else if msg.Info != nil || msg.Pres != nil {
globals.cluster.routeToTopicIntraCluster(t.name, msg, msg.sess)
} else {