فهرست منبع

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.
Thales Macedo Garitezi 4 سال پیش
والد
کامیت
048afa6d2d
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      apps/emqx/src/emqx_schema.erl

+ 1 - 1
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
            })
       }