优化代码

This commit is contained in:
GoEdgeLab
2023-03-14 09:17:05 +08:00
parent 83a0a97b79
commit 39ec1c3f38
2 changed files with 16 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ var sharedDAO DAOInterface
func init() {
// 定期上传日志
ticker := time.NewTicker(60 * time.Second)
var ticker = time.NewTicker(60 * time.Second)
goman.New(func() {
for range ticker.C {
err := uploadLogs()