Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6241317

Browse files
author
xuxinhua
committed
控制邮件发送频率
1 parent 2666623 commit 6241317

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

websites/code/studygolang/src/service/mail.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ func EmailNotice() {
127127
if lastUid < user.Uid {
128128
lastUid = user.Uid
129129
}
130+
131+
// 控制发信速度
132+
time.Sleep(10 * time.Second)
130133
}
131134
}
132135

Loading
Loading

0 commit comments

Comments
 (0)