refactor: add check to ensure core.port is set
This commit is contained in:
parent
2caaa07da8
commit
1e3addac8b
|
@ -74,6 +74,12 @@ func (p *PortalImpl) getInitFuncs() []func() error {
|
|||
return []func() error{
|
||||
func() error {
|
||||
return config.Init(p.Logger())
|
||||
}, func() error {
|
||||
if !p.Config().IsSet("core.port") {
|
||||
p.logger.Fatal("core.port is required")
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
func() error {
|
||||
var seed [32]byte
|
||||
|
|
Loading…
Reference in New Issue