Allows a recipient to be bound to every pool upon creation

This commit is contained in:
Simone Mainardi 2020-11-27 16:30:55 +01:00
parent 30e5b8a629
commit 93ef5c08d8
6 changed files with 75 additions and 5 deletions

View file

@ -68,6 +68,17 @@ end
-- ##############################################
-- @brief Call `instance:bind_all_configset_id` for every available pools `instance`
function pools_lua_utils.bind_all_recipient_id(recipient_id)
local all_instances = pools_lua_utils.all_pool_instances_factory()
for _, instance in pairs(all_instances) do
instance:bind_all_recipient_id(recipient_id)
end
end
-- ##############################################
-- @brief Returns the pool url for a pool with a given `pool_key`
-- @param pool_key A pool key string as found inside `create` method of any pools instance.
-- If no pool key is found, the home of the pool url is returned.