From 59c953190e83d9135927d7f6ea99465b5180f9d5 Mon Sep 17 00:00:00 2001 From: tongzongzhen Date: Thu, 31 Oct 2024 09:58:21 +0800 Subject: Fix the typo in broker in the configuration file --- etc/dp_trace.conf | 2 +- src/config.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/dp_trace.conf b/etc/dp_trace.conf index 9f72037..7f13a5b 100644 --- a/etc/dp_trace.conf +++ b/etc/dp_trace.conf @@ -12,7 +12,7 @@ listen_port=10000 keep_alive_path=/probe [kafka] -borker_list="192.168.44.12:9094" +broker_list="192.168.44.12:9094" topic_name="DATAPATH-TELEMETRY-RECORD" sasl_username=admin sasl_password=galaxy2019 diff --git a/src/config.c b/src/config.c index 0cac3e4..770cf22 100644 --- a/src/config.c +++ b/src/config.c @@ -95,7 +95,7 @@ void config_load() printf("SLED_IP environment variable does not exist.\n"); } - MESA_load_profile_string_def(config_path, "kafka", "borker_list", g_conf->broker_list, sizeof(g_conf->broker_list), + MESA_load_profile_string_def(config_path, "kafka", "broker_list", g_conf->broker_list, sizeof(g_conf->broker_list), ""); MESA_load_profile_string_def(config_path, "kafka", "topic_name", g_conf->topic_name, sizeof(g_conf->topic_name), ""); -- cgit v1.2.3