mirror of
https://github.com/fhmq/hmq.git
synced 2026-04-26 19:48:34 +00:00
cluster fix
This commit is contained in:
@@ -288,17 +288,11 @@ func (b *Broker) handleConnection(typ int, conn net.Conn, idx uint64) {
|
||||
conn: conn,
|
||||
info: info,
|
||||
}
|
||||
|
||||
c.init()
|
||||
|
||||
cid := c.info.clientID
|
||||
|
||||
if typ == ROUTER {
|
||||
c.route = route{
|
||||
remoteID: "",
|
||||
remoteUrl: conn.RemoteAddr().String(),
|
||||
}
|
||||
}
|
||||
|
||||
var msgPool *MessagePool
|
||||
var exist bool
|
||||
var old interface{}
|
||||
@@ -358,7 +352,7 @@ func (b *Broker) connectRouter(url, remoteID string) {
|
||||
}
|
||||
break
|
||||
}
|
||||
route := &route{
|
||||
route := route{
|
||||
remoteID: remoteID,
|
||||
remoteUrl: conn.RemoteAddr().String(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user