ensure, that each config is only parsed once

This commit is contained in:
Willy Kloucek committed 2022-01-03 19:08:11 +01:00
1 parent e37eff7dc8
commit 11466c5f9a
38 files changed
+70 -262

No files matched your search

+2 -5
View File
@@ -38,11 +38,8 @@ func Server(cfg *config.Config) *cli.Command {
return &cli.Command{
Name: "server",
Usage: "Start integrated server",
Before: func(ctx *cli.Context) error {
if err := parser.ParseConfig(cfg); err != nil {
return err
}
return nil
Before: func(c *cli.Context) error {
return parser.ParseConfig(cfg)
},
Action: func(c *cli.Context) error {
logger := logging.Configure(cfg.Service.Name, cfg.Log)