mirror of
https://github.com/fhmq/hmq.git
synced 2026-04-26 19:48:34 +00:00
skip self
This commit is contained in:
@@ -450,6 +450,10 @@ func (b *Broker) connectRouter(id, addr string) {
|
||||
}
|
||||
|
||||
func (b *Broker) checkNodeExist(id, url string) bool {
|
||||
if id == b.id {
|
||||
return false
|
||||
}
|
||||
|
||||
for k, v := range b.nodes {
|
||||
if k == id {
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user