move dispatcher

This commit is contained in:
zhouyuyan
2018-01-02 10:55:28 +08:00
parent 9ad6590e83
commit 123bb7210f
2 changed files with 2 additions and 1 deletions

View File

@@ -65,6 +65,8 @@ func (b *Broker) Start() {
log.Error("broker is null") log.Error("broker is null")
return return
} }
StartDispatcher()
//listen clinet over tcp //listen clinet over tcp
if b.config.Port != "" { if b.config.Port != "" {
go b.StartClientListening(false) go b.StartClientListening(false)

View File

@@ -34,7 +34,6 @@ func main() {
log.Error("Load Config file error: ", er) log.Error("Load Config file error: ", er)
return return
} }
broker.StartDispatcher()
b, err := broker.NewBroker(config) b, err := broker.NewBroker(config)
if err != nil { if err != nil {