diff --git a/assets/policy-extras/shaping.lua b/assets/policy-extras/shaping.lua index 3e722d7e..ceca7fe9 100644 --- a/assets/policy-extras/shaping.lua +++ b/assets/policy-extras/shaping.lua @@ -550,22 +550,7 @@ function mod:setup_with_automation(options) load_shaping_data = cached_load_shaping_data, get_egress_path_config = get_egress_path_config, - should_enqueue_log_record = function(msg, hook_name) - -- deprecated: no longer needed as we register a should_enqueue_log_record - -- handler above. - -- This is preserved for backwards compatibility; when - -- called, it does nothing. - -- TODO: remove me after next release. - return - end, setup_publish = setup_publish, - get_queue_config = function(domain, tenant, campaign, routing_domain) - -- deprecated: no longer needed as we register a get_queue_config - -- handler above. - -- This is preserved for backwards compatibility; when - -- called, it does nothing. - -- TODO: remove me after next release. - end, } return mod.CONFIGURED diff --git a/docs/changelog/main.md b/docs/changelog/main.md index 8f51c311..12bd7fe0 100644 --- a/docs/changelog/main.md +++ b/docs/changelog/main.md @@ -1,6 +1,11 @@ # Unreleased Changes in The Mainline ## Breaking Changes +* Removed deprecated `should_enqueue_log_record` and `get_queue_config` fields + from the `shaper` object returned from `shaping:setup_with_automation`. + These have had no effect for the past several stable releases, having been + made automatic. If you are referencing them in your policy, you can simply + remove the associated logic. ## Other Changes and Enhancements