fix forwarded message read state on proxy topics
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user