1
This commit is contained in:
parent
b00a8aac22
commit
b74a5b808e
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user