From bc2da73f3cdd708ad136a31d59874989dbd46f0c Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Fri, 6 Dec 2024 07:46:35 -0600 Subject: [PATCH] GH-570 Enable pause_at_block API endpoint --- plugins/producer_api_plugin/producer_api_plugin.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/producer_api_plugin/producer_api_plugin.cpp b/plugins/producer_api_plugin/producer_api_plugin.cpp index 299676d32f..d5e451c21f 100644 --- a/plugins/producer_api_plugin/producer_api_plugin.cpp +++ b/plugins/producer_api_plugin/producer_api_plugin.cpp @@ -119,10 +119,9 @@ void producer_api_plugin::plugin_startup() { app().get_plugin().add_api({ CALL_WITH_400(producer, producer_rw, producer, pause, INVOKE_V_V(producer, pause), 201), - // TODO: Enable for Spring 2.0.0 - // CALL_WITH_400(producer, producer_rw, producer, pause_at_block, - // INVOKE_V_R(producer, pause_at_block, producer_plugin::pause_at_block_params), 201), - CALL_WITH_400(producer, producer_rw, producer, resume, + CALL_WITH_400(producer, producer_rw, producer, pause_at_block, + INVOKE_V_R(producer, pause_at_block, producer_plugin::pause_at_block_params), 201), + CALL_WITH_400(producer, producer_rw, producer, resume, INVOKE_V_V(producer, resume), 201), CALL_WITH_400(producer, producer_rw, producer, update_runtime_options, INVOKE_V_R(producer, update_runtime_options, producer_plugin::runtime_options), 201),