client revamping compilation fix

This commit is contained in:
shoopea 2019-07-31 14:50:33 +08:00
parent 3db0777a93
commit d7bcdb0108
2 changed files with 4 additions and 2 deletions

View File

@ -23,8 +23,9 @@ func getLockedClient(id int64, createMissing bool) (*ChirpClient, bool) {
return c, true
} else {
muxClients.RUnlock()
c := new(ChirpClient)
return c, false
//c := new(ChirpClient)
//return c, false
return nil, false
}
}

View File

@ -151,6 +151,7 @@ func main() {
TGCmdQueue = make(chan TGCommand, TGCmdQueueSize)
MQTGCmdQueue = make(chan TGCommand, MQTGCmdQueueSize)
JobQueue = make(chan Job, JobQueueSize)
clients = make(map[int64]*ChirpClient)
for w := 1; w <= MQGetMsgWorkers; w++ {
go MQGetMsgWorker(w, MQCWMsgQueue)