This commit is contained in:
aozhiwei 2024-04-13 21:27:41 +08:00
parent b00a8aac22
commit b74a5b808e

View File

@ -139,10 +139,7 @@ func (this *mailMgr) addMail(m *mail) {
this.groupMails.Store(m.mailId, m) this.groupMails.Store(m.mailId, m)
} else if m.isType(constant.MAIL_TYPE_PERSONAL) { } else if m.isType(constant.MAIL_TYPE_PERSONAL) {
if hum, ok := this.personalMails.Load(m.reciver); ok { if hum, ok := this.personalMails.Load(m.reciver); ok {
(hum.(*sync.Map)).Range( (hum.(*sync.Map)).Store(m.mailId, m)
func (k, v interface{}) bool {
return true
})
} else { } else {
p := new(sync.Map) p := new(sync.Map)
p.Store(m.mailId, m) p.Store(m.mailId, m)