From a72d7f4db50db4ea3936aba9f1e78f1f8c2c1ea8 Mon Sep 17 00:00:00 2001 From: Mrs4s Date: Mon, 1 Mar 2021 09:27:39 +0800 Subject: [PATCH] fix cache timeout. --- client/c2c_processor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/c2c_processor.go b/client/c2c_processor.go index 879125ba..ce69979b 100644 --- a/client/c2c_processor.go +++ b/client/c2c_processor.go @@ -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) }