aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2023-01-04 03:18:31 +0000
committerJulio Capote <jcapote@gmail.com>2023-01-04 03:18:31 +0000
commitf21f496c3c7067bd13dc9e2771a5561dd5c28f5d (patch)
tree865c241923bbdbb27a95c1860eb806f0b8efe394
parent032ce43dd55ea095a48020fcd53b5633daa56f31 (diff)
downloadcommunique-f21f496c3c7067bd13dc9e2771a5561dd5c28f5d.tar.gz
fix nil
-rw-r--r--registry/registry.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/registry/registry.go b/registry/registry.go
index 50986c9..9cb3219 100644
--- a/registry/registry.go
+++ b/registry/registry.go
@@ -35,7 +35,7 @@ type Registry struct {
}
func NewRegistry(cfg config.Config, persister *models.Persister, log *zap.SugaredLogger) (*Registry, error) {
- reg := Registry{cfg: cfg, persister: persister}
+ reg := Registry{cfg: cfg, persister: persister, log: log}
reg.handlerMap = make(map[string]Handler)
for _, v := range cfg.Handlers {
reg.handlerMap[v.Name] = Handler{handlerCfg: v}