aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--main.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/main.go b/main.go
index e65a600..453a4e3 100644
--- a/main.go
+++ b/main.go
@@ -51,7 +51,10 @@ func main() {
persister := models.NewPersister(log, db)
// Registry
- registry := registry.NewRegistry(cfg, persister)
+ registry, err := registry.NewRegistry(cfg, persister)
+ if err != nil {
+ log.Fatal(err)
+ }
// Servers
var mainWg sync.WaitGroup
@@ -64,7 +67,7 @@ func main() {
// // External Http Server
writer := &zapio.Writer{Log: logger, Level: zap.DebugLevel}
defer writer.Close()
- router := http.NewRouter(registry)
+ router := http.NewRouter(registry, log)
mainWg.Add(1)
go router.Start(writer)