cluster fix

This commit is contained in:
zhouyuyan
2018-01-17 09:39:07 +08:00
parent 1d6f6a4a71
commit 7db7edaa17
3 changed files with 9 additions and 14 deletions

View File

@@ -110,13 +110,14 @@ func (c *client) ProcessInfo(packet *packets.PublishPacket) {
}
b.mu.Unlock()
// log.Info("isforword: ", isForward)
if !isForward {
route := &route{
remoteUrl: rurl,
remoteID: rid,
if c.typ == ROUTER {
route := route{
remoteUrl: rurl,
remoteID: rid,
}
c.route = route
}
c.route = route
go b.SendLocalSubsToRouter(c)
// log.Info("BroadcastInfoMessage starting... ")