client revamping compilation fix

This commit is contained in:
shoopea 2019-07-31 14:36:53 +08:00
parent e56a19b494
commit d2e1840f13
3 changed files with 4 additions and 2 deletions

View File

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

2
job.go
View File

@ -352,7 +352,7 @@ func jobPillage(j Job) {
}
// is the job outdated now ?
if r.Date.Before(time.Now().Sub(3*time.Minute + 30*time.Second)) {
if time.Now().After(r.Date.Add(time.Minute*3 + time.Second*30)) {
s := TGCommand{
Type: commandSendMsg,
Text: fmt.Sprintf("Pillage interception expired"),

View File

@ -403,7 +403,7 @@ func SQLIdentifyMsgWorker(id int, objIds <-chan int64) {
cwm, err := parseSubTypeMessageGoQuestAck(m, r)
logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : Parsing objSubTypeMessageGoQuestAck.")
cwm.Msg = m
uid, err := clientGetUserID64(m.UserID64)
uid, err := clientGetCWUserID64(m.UserID64)
logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : Retrieving UserID64.")
if err != nil {
err = setObjSubTypeId(objId, objSubTypeMessageUnknown)