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:
|
case msg := <-t.serverMsg:
|
||||||
if msg.Data != nil {
|
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 {
|
} else if msg.Info != nil || msg.Pres != nil {
|
||||||
globals.cluster.routeToTopicIntraCluster(t.name, msg, msg.sess)
|
globals.cluster.routeToTopicIntraCluster(t.name, msg, msg.sess)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user