aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2023-01-04 01:29:50 +0000
committerJulio Capote <jcapote@gmail.com>2023-01-04 01:29:50 +0000
commit54b85678185008a4f6b5778460228788e2dd970d (patch)
treebcce8ac619da7c438518801df4a57be2401f7596 /main.go
parenta40781358984f651214e53ba000ccc288c56d4f1 (diff)
downloadcommunique-54b85678185008a4f6b5778460228788e2dd970d.tar.gz
start of keypair model and persisting keypairs
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)