🐛 fix: 修复 Windows Agent 启动问题,需人工下载更新

This commit is contained in:
naiba
2021-01-19 11:10:32 +08:00
parent d7a3ba607b
commit c3cdf46ae3
5 changed files with 31 additions and 26 deletions

View File

@@ -3,7 +3,6 @@ package dao
import (
"sort"
"sync"
"time"
"github.com/patrickmn/go-cache"
"github.com/robfig/cron/v3"
@@ -37,16 +36,6 @@ var Cron *cron.Cron
var Version = "v0.3.0"
func init() {
shanghai, err := time.LoadLocation("Asia/Shanghai")
if err != nil {
panic(err)
}
Cron = cron.New(cron.WithLocation(shanghai))
Crons = make(map[uint64]*model.Cron)
ServerList = make(map[uint64]*model.Server)
}
func ReSortServer() {
ServerLock.RLock()
defer ServerLock.RUnlock()