From 9456c59b2cde2f1265b438c83c43a3787a3088ba Mon Sep 17 00:00:00 2001 From: eeff <33566201+eeff@users.noreply.github.com> Date: Thu, 14 Sep 2023 17:51:41 +0800 Subject: [PATCH] fix(monitor): group update json event encoding --- plugins/monitor/mqtt_handle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/monitor/mqtt_handle.c b/plugins/monitor/mqtt_handle.c index 590cc867..d9852c33 100644 --- a/plugins/monitor/mqtt_handle.c +++ b/plugins/monitor/mqtt_handle.c @@ -140,8 +140,8 @@ static char *generate_event_json(neu_plugin_t *plugin, neu_reqresp_type_e event, update_grp->interval >= NEU_GROUP_INTERVAL_LIMIT; json_req.update_grp.interval = update_grp->interval; *topic_p = plugin->config->group_update_topic; - neu_json_encode_by_fn(&json_req, neu_json_encode_add_group_config_req, - &json_str); + neu_json_encode_by_fn( + &json_req, neu_json_encode_update_group_config_req, &json_str); break; } case NEU_REQ_ADD_TAG_EVENT: