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.
This commit is contained in:
Thales Macedo Garitezi 2021-12-29 10:10:19 -03:00
parent 3c966d77ca
commit 048afa6d2d
No known key found for this signature in database
GPG Key ID: DD279F8152A9B6DD
1 changed files with 1 additions and 1 deletions

View File

@ -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
})
}