1
This commit is contained in:
parent
3fd6e2b00f
commit
26a295a66c
@ -71,3 +71,11 @@ func (this *MailTable) loadMail(mailName string) {
|
||||
}
|
||||
this.nameHash.Store(mailName, p)
|
||||
}
|
||||
|
||||
func (this *MailTable) GetMailByName(mailName string) *Mail {
|
||||
if v, ok := this.nameHash.Load(mailName); ok {
|
||||
return *v
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user