From 8917be50777f75daf00e751f0d513b01dec100b1 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 11 Jan 2024 23:23:38 -0500 Subject: [PATCH] fix: add init func for config --- cmd/portal/portal.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/portal/portal.go b/cmd/portal/portal.go index 5bcb034..91563bf 100644 --- a/cmd/portal/portal.go +++ b/cmd/portal/portal.go @@ -2,6 +2,7 @@ package main import ( "git.lumeweb.com/LumeWeb/portal/api" + "git.lumeweb.com/LumeWeb/portal/config" "git.lumeweb.com/LumeWeb/portal/interfaces" "git.lumeweb.com/LumeWeb/portal/protocols" "github.com/spf13/viper" @@ -63,6 +64,9 @@ func (p *PortalImpl) ApiRegistry() interfaces.APIRegistry { } func (p *PortalImpl) getInitFuncs() []func() error { return []func() error{ + func() error { + return config.Init(p.Logger()) + }, func() error { return protocols.Init(p.protocolRegistry) },