diff options
Diffstat (limited to '')
-rw-r--r-- | main.go | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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) |