1
This commit is contained in:
parent
516d58263c
commit
2cac3902c1
@ -76,15 +76,10 @@ std::shared_ptr<a8::XObject> JsonDataMgr::GetMysqlClusterConf()
|
|||||||
|
|
||||||
bool JsonDataMgr::GetRankServerConf(std::string& ip, int& port)
|
bool JsonDataMgr::GetRankServerConf(std::string& ip, int& port)
|
||||||
{
|
{
|
||||||
#if 1
|
|
||||||
ip = "127.0.0.1";
|
|
||||||
port = 8961;
|
|
||||||
#else
|
|
||||||
std::shared_ptr<a8::XObject> rankserver_cluster_conf = GetMasterServerClusterConf();
|
std::shared_ptr<a8::XObject> rankserver_cluster_conf = GetMasterServerClusterConf();
|
||||||
std::shared_ptr<a8::XObject> conf = rankserver_cluster_conf->At(0);
|
std::shared_ptr<a8::XObject> conf = rankserver_cluster_conf->At(0);
|
||||||
ip = conf->At("rankserver_ip")->AsXValue().GetString();
|
ip = conf->At("ip")->AsXValue().GetString();
|
||||||
port = conf->At("rankserver_ip")->AsXValue();
|
port = conf->At("port")->AsXValue();
|
||||||
#endif
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user