Commit 2dcfa32d authored by cdjgit's avatar cdjgit

fix typo

parent 2232e8af
......@@ -64,8 +64,8 @@ SharedLoadBalancer::~SharedLoadBalancer() {
int SharedLoadBalancer::Init(const char* lb_protocol) {
std::string lb_name;
butil::StringPairs lb_parms;
if (!ParseParameters(lb_protocol, &lb_name, &lb_parms)) {
butil::StringPairs lb_params;
if (!ParseParameters(lb_protocol, &lb_name, &lb_params)) {
LOG(FATAL) << "Fail to parse this load balancer protocol '" << lb_protocol << '\'';
return -1;
}
......@@ -80,7 +80,7 @@ int SharedLoadBalancer::Init(const char* lb_protocol) {
return -1;
}
_lb = lb_copy;
if (!_lb->SetParameters(lb_parms)) {
if (!_lb->SetParameters(lb_params)) {
LOG(FATAL) << "Fail to set parameters of lb `" << lb_protocol << "'";
return -1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment