From 5aa63ed2032cce119f1ac3bbb7eb559acd84dd52 Mon Sep 17 00:00:00 2001 From: Zaiming Shi Date: Wed, 20 Jan 2021 08:35:50 +0100 Subject: [PATCH] fix(shared_sub): align default value and default config Shared subscription default dispatch strategy is 'random' in config but 'round_robin' in code. This commit is to make sure they are the same: both are 'random'. --- src/emqx_shared_sub.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emqx_shared_sub.erl b/src/emqx_shared_sub.erl index 7ec03cd87..f4b9bf78c 100644 --- a/src/emqx_shared_sub.erl +++ b/src/emqx_shared_sub.erl @@ -126,7 +126,7 @@ dispatch(Group, Topic, Delivery = #delivery{message = Msg}, FailedSubs) -> -spec(strategy() -> random | round_robin | sticky | hash). strategy() -> - emqx:get_env(shared_subscription_strategy, round_robin). + emqx:get_env(shared_subscription_strategy, random). -spec(ack_enabled() -> boolean()). ack_enabled() ->