fix: fix session_locking_strategy enum typos

This commit is contained in:
JianBo He 2020-09-24 09:10:28 +08:00 committed by Shawn
parent 06b9b6e6b0
commit 76ec65830c
2 changed files with 2 additions and 2 deletions

View File

@ -2041,7 +2041,7 @@ broker.sys_heartbeat = 30s
##
## Value: Enum
## - local
## - one
## - leader
## - quorum
## - all
broker.session_locking_strategy = quorum

View File

@ -60,7 +60,7 @@ lock(ClientId, Piggyback) ->
unlock(ClientId) ->
ekka_locker:release(?MODULE, ClientId, strategy()).
-spec(strategy() -> local | one | quorum | all).
-spec(strategy() -> local | leader | quorum | all).
strategy() ->
emqx:get_env(session_locking_strategy, quorum).