diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-21 01:48:10 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-21 01:48:10 -0400 |
commit | f6596f11c4aacd3c7c30098f7ffe79e936d21583 (patch) | |
tree | aad5d5017b03d530e6c69ea474266fecea86d0e2 /modules/mailer | |
parent | 369ddf76a8ae6916ab72f1fa26c81b44c456c6ea (diff) | |
download | gitea-f6596f11c4aacd3c7c30098f7ffe79e936d21583.tar.gz gitea-f6596f11c4aacd3c7c30098f7ffe79e936d21583.zip |
All configuration reload-able
Diffstat (limited to 'modules/mailer')
-rw-r--r-- | modules/mailer/mailer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mailer/mailer.go b/modules/mailer/mailer.go index 150607f8c4..da63e01d2a 100644 --- a/modules/mailer/mailer.go +++ b/modules/mailer/mailer.go @@ -40,7 +40,7 @@ func (m Message) Content() string { var mailQueue chan *Message -func init() { +func NewMailerContext() { mailQueue = make(chan *Message, base.Cfg.MustInt("mailer", "SEND_BUFFER_LEN", 10)) go processMailQueue() } |