From 54b85678185008a4f6b5778460228788e2dd970d Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Tue, 3 Jan 2023 20:29:50 -0500 Subject: start of keypair model and persisting keypairs --- main.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'main.go') 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) -- cgit v1.2.3