summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortongzongzhen <[email protected]>2024-10-31 09:58:21 +0800
committertongzongzhen <[email protected]>2024-10-31 09:58:21 +0800
commit59c953190e83d9135927d7f6ea99465b5180f9d5 (patch)
tree7ce9f78b3dfa0117402bf172916901512b223394
parent90918bd07257bbdf8fabacd41063409aa0ceb1d6 (diff)
Fix the typo in broker in the configuration file
-rw-r--r--etc/dp_trace.conf2
-rw-r--r--src/config.c2
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),
"");