Skip to content

Commit

Permalink
Go Fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacLambat committed Nov 29, 2023
1 parent cfe1356 commit 4f5960b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tools/stats-definition-exporter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ func getStats(logger *log.Logger) (StatDefinitions, error) {

// Get all the stats
globalStatsDefinitions := traverseAndRetrieveStats(logger, globalStats)
dbStatDefinitions := traverseAndRetrieveStats(logger, dbStats)
dbStatDefinitions := traverseAndRetrieveStats(logger, dbStats)

// Merge the two maps
stats := make(StatDefinitions, len(globalStatsDefinitions) + len(dbStatDefinitions))
stats := make(StatDefinitions, len(globalStatsDefinitions)+len(dbStatDefinitions))
for k, v := range globalStatsDefinitions {
stats[k] = v
}
Expand Down
2 changes: 1 addition & 1 deletion tools/stats-definition-exporter/stat_traverser.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func traverseAndRetrieveStats(logger *log.Logger, s any) StatDefinitions {
}

// Follow to struct down a level and append the stats to the map
for k,v := range traverseAndRetrieveStats(logger, field.Interface()) {
for k, v := range traverseAndRetrieveStats(logger, field.Interface()) {
stats[k] = v
}
}
Expand Down

0 comments on commit 4f5960b

Please sign in to comment.