client revamping compilation fix
This commit is contained in:
parent
3db0777a93
commit
d7bcdb0108
@ -23,8 +23,9 @@ func getLockedClient(id int64, createMissing bool) (*ChirpClient, bool) {
|
|||||||
return c, true
|
return c, true
|
||||||
} else {
|
} else {
|
||||||
muxClients.RUnlock()
|
muxClients.RUnlock()
|
||||||
c := new(ChirpClient)
|
//c := new(ChirpClient)
|
||||||
return c, false
|
//return c, false
|
||||||
|
return nil, false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
1
main.go
1
main.go
@ -151,6 +151,7 @@ func main() {
|
|||||||
TGCmdQueue = make(chan TGCommand, TGCmdQueueSize)
|
TGCmdQueue = make(chan TGCommand, TGCmdQueueSize)
|
||||||
MQTGCmdQueue = make(chan TGCommand, MQTGCmdQueueSize)
|
MQTGCmdQueue = make(chan TGCommand, MQTGCmdQueueSize)
|
||||||
JobQueue = make(chan Job, JobQueueSize)
|
JobQueue = make(chan Job, JobQueueSize)
|
||||||
|
clients = make(map[int64]*ChirpClient)
|
||||||
|
|
||||||
for w := 1; w <= MQGetMsgWorkers; w++ {
|
for w := 1; w <= MQGetMsgWorkers; w++ {
|
||||||
go MQGetMsgWorker(w, MQCWMsgQueue)
|
go MQGetMsgWorker(w, MQCWMsgQueue)
|
||||||
|
Loading…
Reference in New Issue
Block a user