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:
parent
c6785b1a34
commit
5aa63ed203
|
@ -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() ->
|
||||||
|
|
Loading…
Reference in New Issue