From 153d64068a2c23d76ea3a97ee7a253b533f32d02 Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Thu, 12 Jan 2023 14:53:29 +0100 Subject: [PATCH] refactor: rename root level cache type to authz_cache --- apps/emqx/src/emqx_schema.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/emqx/src/emqx_schema.erl b/apps/emqx/src/emqx_schema.erl index 043b57b99..628edb858 100644 --- a/apps/emqx/src/emqx_schema.erl +++ b/apps/emqx/src/emqx_schema.erl @@ -328,7 +328,7 @@ fields("stats") -> ]; fields("authorization") -> authz_fields(); -fields("cache") -> +fields("authz_cache") -> [ {"enable", sc( @@ -1684,7 +1684,7 @@ desc("mqtt") -> "Global MQTT configuration.
" "The configs here work as default values which can be overridden\n" "in zone configs"; -desc("cache") -> +desc("authz_cache") -> "Settings for the authorization cache."; desc("zone") -> "A `Zone` defines a set of configuration items (such as the maximum number of connections)" @@ -2090,7 +2090,7 @@ authz_fields() -> )}, {"cache", sc( - ref(?MODULE, "cache"), + ref(?MODULE, "authz_cache"), #{} )} ].