monitor writes to db

Former-commit-id: 5aa70ad9d835c607abb1c19dc620f6c45d31a866
This commit is contained in:
bel
2019-06-22 14:40:57 -06:00
parent 5e87f1659d
commit 093d468f87
8 changed files with 58 additions and 17 deletions

View File

@@ -27,7 +27,10 @@ func main() {
}
go InterruptAfter(s.Run, sigc)
m := monitor.New()
m, err := monitor.New()
if err != nil {
panic(err)
}
go InterruptAfter(m.Run, sigc)
signal.Notify(sigc,