Merge pull request #10588 from zhongwencool/fix-array-default

chore: make sure topic_metrics/rewrite's default is []
This commit is contained in:
zhongwencool 2023-05-04 16:03:21 +08:00 committed by GitHub
commit 2bc1ddbd19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -36,11 +36,13 @@ roots() ->
"telemetry", "telemetry",
array("rewrite", #{ array("rewrite", #{
desc => "List of topic rewrite rules.", desc => "List of topic rewrite rules.",
importance => ?IMPORTANCE_HIDDEN importance => ?IMPORTANCE_HIDDEN,
default => []
}), }),
array("topic_metrics", #{ array("topic_metrics", #{
desc => "List of topics whose metrics are reported.", desc => "List of topics whose metrics are reported.",
importance => ?IMPORTANCE_HIDDEN importance => ?IMPORTANCE_HIDDEN,
default => []
}) })
]. ].