mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Pools limit concurrent nums
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user