Skip to content

Commit

Permalink
Revert "fix: move the ConfigDCContext out for more readibilty"
Browse files Browse the repository at this point in the history
This reverts commit 1769dfc.
  • Loading branch information
a-spiker committed Sep 12, 2024
1 parent 1769dfc commit 4b75b98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion info/as_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -1148,10 +1148,11 @@ func parseAllXDRConfig(rawMap map[string]string, cmd string) lib.Stats {

if dcNamesRaw == "" {
dcNames = []string{}
xdrConfigMap[ConfigDCContext] = make(lib.Stats)
} else {
dcNames = strings.Split(dcNamesRaw, ",")
xdrConfigMap[ConfigDCContext] = make(lib.Stats, len(dcNames))
}
xdrConfigMap[ConfigDCContext] = make(lib.Stats, len(dcNames))

for _, dc := range dcNames {
dcMap := ParseIntoMap(rawMap[cmd+";dc="+dc], ";", "=")
Expand Down

0 comments on commit 4b75b98

Please sign in to comment.