summaryrefslogtreecommitdiffstats
path: root/modules/mailer
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-12-31 18:37:29 +0800
committerUnknwon <joe2010xtmf@163.com>2014-12-31 18:37:29 +0800
commitbd555551ce6d4b26cbce14b778b05d573b4aa4a4 (patch)
tree8185c6dccf18c45a5a59b8403e361bda805c93b3 /modules/mailer
parente1c5008238c144e9946398379a9e50fc8f284bec (diff)
downloadgitea-bd555551ce6d4b26cbce14b778b05d573b4aa4a4.tar.gz
gitea-bd555551ce6d4b26cbce14b778b05d573b4aa4a4.zip
fix #801
Diffstat (limited to 'modules/mailer')
-rw-r--r--modules/mailer/mailer.go2
1 files changed, 1 insertions, 1 deletions
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()
}