WIP adopt updated yaml-config with 'fromdefaults' struct tag

This commit is contained in:
Christian Schwarz
2018-08-31 21:50:59 +02:00
parent b95e983d0d
commit d55a271ac7
16 changed files with 206 additions and 26 deletions

View File

@ -17,7 +17,7 @@ import (
"time"
)
func Run(conf config.Config) error {
func Run(conf *config.Config) error {
ctx, cancel := context.WithCancel(context.Background())
@ -29,7 +29,7 @@ func Run(conf config.Config) error {
cancel()
}()
outlets, err := logging.OutletsFromConfig(conf.Global.Logging)
outlets, err := logging.OutletsFromConfig(*conf.Global.Logging)
if err != nil {
return errors.Wrap(err, "cannot build logging from config")
}