test
This commit is contained in:
parent
2cbe5e7aa3
commit
8eadfe3353
3
td.go
3
td.go
@ -75,7 +75,8 @@ func ListenTG(c *tdlib.Client) {
|
|||||||
lastChatMsgMux.RUnlock()
|
lastChatMsgMux.RUnlock()
|
||||||
lastChatMsgMux.Lock()
|
lastChatMsgMux.Lock()
|
||||||
if _, ok := lastChatTDMsg[m.ChatID64]; !ok {
|
if _, ok := lastChatTDMsg[m.ChatID64]; !ok {
|
||||||
lastChatTDMsg[m.ChatID64] = time.Now().Add(-1 * time.Second)
|
initTime := time.Now().Add(-1 * time.Second)
|
||||||
|
lastChatTDMsg[m.ChatID64] = initTime
|
||||||
lastChatTDMsgMux[m.ChatID64] = new(sync.Mutex)
|
lastChatTDMsgMux[m.ChatID64] = new(sync.Mutex)
|
||||||
}
|
}
|
||||||
lastChatMsgMux.Unlock()
|
lastChatMsgMux.Unlock()
|
||||||
|
Loading…
Reference in New Issue
Block a user