From f21f496c3c7067bd13dc9e2771a5561dd5c28f5d Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Tue, 3 Jan 2023 22:18:31 -0500 Subject: fix nil --- registry/registry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'registry/registry.go') 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} -- cgit v1.2.3