ensure, that each config is only parsed once

This commit is contained in:
Willy Kloucek
2022-01-03 19:08:11 +01:00
parent e37eff7dc8
commit 11466c5f9a
38 changed files with 70 additions and 262 deletions
+1 -9
View File
@@ -15,15 +15,7 @@ func GraphCommand(cfg *config.Config) *cli.Command {
Usage: "Start graph server",
Category: "Extensions",
Before: func(ctx *cli.Context) error {
if err := parser.ParseConfig(cfg); err != nil {
return err
}
if cfg.Commons != nil {
cfg.Accounts.Commons = cfg.Commons
}
return nil
return parser.ParseConfig(cfg)
},
Subcommands: command.GetCommands(cfg.Graph),
}