mirror of
https://github.com/benbusby/farside.git
synced 2025-04-19 02:18:42 +00:00
Run cron init in goroutine
Cron init blocks the server from starting until it finishes, which is not ideal.
This commit is contained in:
parent
d15e05d39e
commit
6970db9c5b
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -24,7 +24,7 @@ func main() {
|
|||
}
|
||||
}()
|
||||
|
||||
db.InitCronTasks()
|
||||
go db.InitCronTasks()
|
||||
|
||||
signalChan := make(chan os.Signal, 1)
|
||||
signal.Notify(signalChan, os.Interrupt, syscall.SIGTERM)
|
||||
|
|
Loading…
Add table
Reference in a new issue