1
0
Fork 0
forked from forgejo/forgejo

simplify names

This commit is contained in:
Unknwon 2015-09-16 23:08:46 -04:00
parent a517cfdf7b
commit e75fd2f783
9 changed files with 240 additions and 234 deletions

View file

@ -70,8 +70,12 @@ func (m Message) Content() string {
var mailQueue chan *Message
func NewMailerContext() {
mailQueue = make(chan *Message, setting.Cfg.Section("mailer").Key("SEND_BUFFER_LEN").MustInt(10))
func NewContext() {
if setting.MailService == nil {
return
}
mailQueue = make(chan *Message, setting.MailService.QueueLength)
go processMailQueue()
}