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'.
This commit is contained in:
Zaiming Shi 2021-01-20 08:35:50 +01:00
parent c6785b1a34
commit 5aa63ed203
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ dispatch(Group, Topic, Delivery = #delivery{message = Msg}, FailedSubs) ->
-spec(strategy() -> random | round_robin | sticky | hash). -spec(strategy() -> random | round_robin | sticky | hash).
strategy() -> strategy() ->
emqx:get_env(shared_subscription_strategy, round_robin). emqx:get_env(shared_subscription_strategy, random).
-spec(ack_enabled() -> boolean()). -spec(ack_enabled() -> boolean()).
ack_enabled() -> ack_enabled() ->