Explorar o código

chore: make sure topic_metrics/rewrite's default is []

Zhongwen Deng %!s(int64=2) %!d(string=hai) anos
pai
achega
b09ee540d0
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      apps/emqx_modules/src/emqx_modules_schema.erl

+ 4 - 2
apps/emqx_modules/src/emqx_modules_schema.erl

@@ -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 => []
         })
         })
     ].
     ].