diff options
author | Julio Capote <jcapote@gmail.com> | 2023-01-04 01:29:50 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2023-01-04 01:29:50 +0000 |
commit | 54b85678185008a4f6b5778460228788e2dd970d (patch) | |
tree | bcce8ac619da7c438518801df4a57be2401f7596 /main.go | |
parent | a40781358984f651214e53ba000ccc288c56d4f1 (diff) | |
download | communique-54b85678185008a4f6b5778460228788e2dd970d.tar.gz |
start of keypair model and persisting keypairs
Diffstat (limited to 'main.go')
-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) |