client revamping compilation fix
This commit is contained in:
parent
d2e1840f13
commit
a46ba7699b
@ -15,7 +15,7 @@ func getLockedClient(id int64, createMissing bool) (*ChirpClient, bool) {
|
||||
c := new(ChirpClient)
|
||||
c.TGUserID64 = id
|
||||
c.Active = false
|
||||
c.Lock()
|
||||
c.Mux.Lock()
|
||||
muxClients.RUnlock()
|
||||
muxClients.Lock()
|
||||
clients[id] = c
|
||||
|
4
main.go
4
main.go
@ -151,10 +151,6 @@ func main() {
|
||||
TGCmdQueue = make(chan TGCommand, TGCmdQueueSize)
|
||||
MQTGCmdQueue = make(chan TGCommand, MQTGCmdQueueSize)
|
||||
JobQueue = make(chan Job, JobQueueSize)
|
||||
clientsQueue = make(map[int64]*MQClient)
|
||||
|
||||
clientsCW = new(sync.Map)
|
||||
clientsKeepAlive = new(sync.Map)
|
||||
|
||||
for w := 1; w <= MQGetMsgWorkers; w++ {
|
||||
go MQGetMsgWorker(w, MQCWMsgQueue)
|
||||
|
Loading…
Reference in New Issue
Block a user