提交 7d4ae775 编写于 作者: S Shengliang Guan

rename var

上级 2f97bd24
......@@ -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);
......
......@@ -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
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册