From bd555551ce6d4b26cbce14b778b05d573b4aa4a4 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 31 Dec 2014 18:37:29 +0800 Subject: fix #801 --- modules/mailer/mailer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/mailer') diff --git a/modules/mailer/mailer.go b/modules/mailer/mailer.go index e2d185d82d..6a23e5d09e 100644 --- a/modules/mailer/mailer.go +++ b/modules/mailer/mailer.go @@ -42,7 +42,7 @@ func (m Message) Content() string { var mailQueue chan *Message func NewMailerContext() { - mailQueue = make(chan *Message, setting.Cfg.MustInt("mailer", "SEND_BUFFER_LEN", 10)) + mailQueue = make(chan *Message, setting.Cfg.Section("mailer").Key("SEND_BUFFER_LEN").MustInt(10)) go processMailQueue() } -- cgit v1.2.3