uncomment lines in cron.go

This commit is contained in:
Dawid Wysokiński 2021-05-01 15:42:28 +02:00
parent e9248b1f71
commit 39f5b460d6
1 changed files with 10 additions and 10 deletions

View File

@ -74,19 +74,19 @@ func (c *Cron) init() error {
if _, err := c.AddFunc("10 1 * * *", c.deleteNonExistentVillages); err != nil {
return err
}
//if _, err := c.AddFunc("@every 1m", c.updateEnnoblements); err != nil {
// return err
//}
if _, err := c.AddFunc("@every 1m", c.updateEnnoblements); err != nil {
return err
}
if c.runOnInit {
go func() {
c.updateServerData()
//c.vacuumDatabase()
//for _, fn := range updateHistoryFuncs {
// fn()
//}
//for _, fn := range updateStatsFuncs {
// fn()
//}
c.vacuumDatabase()
for _, fn := range updateHistoryFuncs {
fn()
}
for _, fn := range updateStatsFuncs {
fn()
}
}()
}
return nil