diff --git a/source/libs/config/inc/cfgInt.h b/source/libs/config/inc/cfgInt.h index e441e401fbc367348f22a6dbd4c74de3d163bb8a..56cc58e658be51982b6791deb8438d01c7870440 100644 --- a/source/libs/config/inc/cfgInt.h +++ b/source/libs/config/inc/cfgInt.h @@ -31,7 +31,7 @@ typedef struct SConfig { SHashObj *hash; } SConfig; -int32_t cfgLoadFromTaosFile(SConfig *pConfig, const char *filepath); +int32_t cfgLoadFromCfgFile(SConfig *pConfig, const char *filepath); int32_t cfgLoadFromDotEnvFile(SConfig *pConfig, const char *filepath); int32_t cfgLoadFromGlobalEnvVariable(SConfig *pConfig); int32_t cfgLoadFromApollUrl(SConfig *pConfig, const char *url); diff --git a/source/libs/config/src/cfgTaosFile.c b/source/libs/config/src/cfgCfgFile.c similarity index 91% rename from source/libs/config/src/cfgTaosFile.c rename to source/libs/config/src/cfgCfgFile.c index 7d5b4e4743c3ad6d3e0a1fdf51c475436791bcef..9cf36997eb9a8829618070f6af88a1d2ad7f8602 100644 --- a/source/libs/config/src/cfgTaosFile.c +++ b/source/libs/config/src/cfgCfgFile.c @@ -16,7 +16,7 @@ #define _DEFAULT_SOURCE #include "cfgInt.h" -int32_t cfgLoadFromTaosFile(SConfig *pConfig, const char *filepath) { +int32_t cfgLoadFromCfgFile(SConfig *pConfig, const char *filepath) { uInfo("load from .cfg file %s", filepath); return 0; } \ No newline at end of file diff --git a/source/libs/config/src/config.c b/source/libs/config/src/config.c index 77cde8221ecd81f765f8e485bbbce687e668d43d..96504896559e384343ee881312073dddace6ef4c 100644 --- a/source/libs/config/src/config.c +++ b/source/libs/config/src/config.c @@ -36,7 +36,7 @@ SConfig *cfgInit() { int32_t cfgLoad(SConfig *pConfig, ECfgSrcType cfgType, const char *sourceStr) { switch (cfgType) { case CFG_TYPE_CFG_FILE: - return cfgLoadFromTaosFile(pConfig, sourceStr); + return cfgLoadFromCfgFile(pConfig, sourceStr); case CFG_TYPE_DOT_ENV: return cfgLoadFromDotEnvFile(pConfig, sourceStr); case CFG_TYPE_ENV_VAR: