From 6f6862086047ba6902f51de3cb66eb3af04fffbd Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 19 Mar 2014 21:05:48 -0400 Subject: Pools limit concurrent nums --- modules/mailer/mail.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'modules/mailer/mail.go') diff --git a/modules/mailer/mail.go b/modules/mailer/mail.go index c1d12bba..92acd20e 100644 --- a/modules/mailer/mail.go +++ b/modules/mailer/mail.go @@ -62,8 +62,7 @@ func SendRegisterMail(r *middleware.Render, user *models.User) { msg := NewMailMessage([]string{user.Email}, subject, body) msg.Info = fmt.Sprintf("UID: %d, send register mail", user.Id) - // async send mail - SendAsync(msg) + SendAsync(&msg) } // Send email verify active email. @@ -83,6 +82,5 @@ func SendActiveMail(r *middleware.Render, user *models.User) { msg := NewMailMessage([]string{user.Email}, subject, body) msg.Info = fmt.Sprintf("UID: %d, send email verify mail", user.Id) - // async send mail - SendAsync(msg) + SendAsync(&msg) } -- cgit v1.2.3