missing '}'
This commit is contained in:
parent
a5f6e2f6b1
commit
cd30eabdfb
1 changed files with 2 additions and 0 deletions
2
main.go
2
main.go
|
@ -196,6 +196,8 @@ func (web *Web) initCronJobs() {
|
||||||
if delayErr == nil {
|
if delayErr == nil {
|
||||||
time.Sleep(cronDelay)
|
time.Sleep(cronDelay)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if viper.IsSet("database.prune") {
|
if viper.IsSet("database.prune") {
|
||||||
pruneSchedule := viper.GetString("database.prune")
|
pruneSchedule := viper.GetString("database.prune")
|
||||||
_, err := web.cron.AddFunc(pruneSchedule, web.pruneDB)
|
_, err := web.cron.AddFunc(pruneSchedule, web.pruneDB)
|
||||||
|
|
Loading…
Add table
Reference in a new issue