mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 11:07:40 +08:00
fix cache timeout.
This commit is contained in:
parent
331dd98a7c
commit
a72d7f4db5
@ -52,7 +52,7 @@ func (c *QQClient) c2cMessageSyncProcessor(rsp *msg.GetMessageResponse) {
|
||||
if _, ok := c.msgSvcCache.GetAndUpdate(strKey, time.Minute*5); ok {
|
||||
continue
|
||||
}
|
||||
c.msgSvcCache.Add(strKey, "", time.Minute)
|
||||
c.msgSvcCache.Add(strKey, "", time.Minute*5)
|
||||
if decoder, ok := c2cDecoders[pMsg.Head.GetMsgType()]; ok {
|
||||
decoder(c, pMsg)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user