mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-01 17:38:33 +00:00
Pools limit concurrent nums
This commit is contained in:
parent
601c10309d
commit
6f68620860
8 changed files with 43 additions and 25 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue