Fix RunApplication

This commit is contained in:
Sasha Koshka 2024-05-03 13:27:32 -04:00
parent aeea57a09c
commit 7e879defbd

View File

@ -81,7 +81,10 @@ type ApplicationRole string; const (
func RunApplication (application Application) {
err := registry.Init()
if err != nil { log.Fatal("nasin: could not init registry:", err) }
err := tomo.Run(application.Init)
err = tomo.Run(func () {
err := application.Init()
if err != nil { log.Fatal("nasin: could not run application:", err) }
})
if err != nil { log.Fatal("nasin: could not run application:", err) }
}