fix: add init func for config

This commit is contained in:
Derrick Hammer 2024-01-11 23:23:38 -05:00
parent b8572ea712
commit 8917be5077
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,7 @@ package main
import ( import (
"git.lumeweb.com/LumeWeb/portal/api" "git.lumeweb.com/LumeWeb/portal/api"
"git.lumeweb.com/LumeWeb/portal/config"
"git.lumeweb.com/LumeWeb/portal/interfaces" "git.lumeweb.com/LumeWeb/portal/interfaces"
"git.lumeweb.com/LumeWeb/portal/protocols" "git.lumeweb.com/LumeWeb/portal/protocols"
"github.com/spf13/viper" "github.com/spf13/viper"
@ -63,6 +64,9 @@ func (p *PortalImpl) ApiRegistry() interfaces.APIRegistry {
} }
func (p *PortalImpl) getInitFuncs() []func() error { func (p *PortalImpl) getInitFuncs() []func() error {
return []func() error{ return []func() error{
func() error {
return config.Init(p.Logger())
},
func() error { func() error {
return protocols.Init(p.protocolRegistry) return protocols.Init(p.protocolRegistry)
}, },