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")
return
}
StartDispatcher()
//listen clinet over tcp
if b.config.Port != "" {
go b.StartClientListening(false)

View File

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