Add queuing system

This commit is contained in:
nemunaire 2021-07-31 17:16:38 +02:00
commit f2eacf41cf
6 changed files with 106 additions and 17 deletions

View file

@ -18,11 +18,12 @@ func main() {
a := NewApp(cfg)
go a.Start()
go runQueue()
quit := make(chan os.Signal)
signal.Notify(quit, os.Interrupt, syscall.SIGTERM)
<-quit
log.Println("Stopping the service...")
a.Stop()
log.Println("Stopped")
}