| 42 | GlobalConfig::~GlobalConfig() {} |
| 43 | |
| 44 | GlobalConfig *GlobalConfig::GetThreadInstance() { |
| 45 | static thread_local GlobalConfig *global_config = nullptr; |
| 46 | if (!global_config) { |
| 47 | global_config = plugin::ConfigFactory::GetInstance()->NewGlobalConfig().release(); |
| 48 | } |
| 49 | assert(global_config); |
| 50 | global_config->Load(); |
| 51 | |
| 52 | return global_config; |
| 53 | } |
| 54 | |
| 55 | comm::RetCode GlobalConfig::ReadConfig(proto::GlobalConfig &proto) { |
| 56 | // sample |
nothing calls this directly
no test coverage detected