feat(pkg/github): Github遗言仓库

fix(internal/sendMail): 重试功能
This commit is contained in:
mei
2025-10-06 17:26:00 +08:00
parent 73cf96a3c4
commit abc9c93b4e
4 changed files with 160 additions and 14 deletions
+2
View File
@@ -17,11 +17,13 @@ func init() {
if err != nil {
log.Printf("获取配置文件失败: %v", err)
}
if config.Debug {
duration = time.Duration(config.DisconnectDuration) * time.Second
} else {
duration = time.Duration(config.DisconnectDuration) * time.Hour
}
timer = time.NewTimer(duration)
go func() {
<-timer.C