From 048afa6d2d693f6c53e8103fa132362c5915e641 Mon Sep 17 00:00:00 2001 From: Thales Macedo Garitezi Date: Wed, 29 Dec 2021 10:10:19 -0300 Subject: [PATCH] fix(config): add missing enum constructors for `shared_subscription_strategy` Currently, there's code and tests that expect the possibility of a value `sticky`, `hash_topic` and `hash_clientid` in the `node.shared_subscritpion_strategy` configuration, but the schema enum does not contain those constructors. --- apps/emqx/src/emqx_schema.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/emqx/src/emqx_schema.erl b/apps/emqx/src/emqx_schema.erl index 85b411217..ee1457eef 100644 --- a/apps/emqx/src/emqx_schema.erl +++ b/apps/emqx/src/emqx_schema.erl @@ -828,7 +828,7 @@ fields("broker") -> }) } , {"shared_subscription_strategy", - sc(hoconsc:enum([random, round_robin]), + sc(hoconsc:enum([random, round_robin, sticky, hash_topic, hash_clientid]), #{ default => round_robin }) }