Commit fd3295d3 authored by zhujiashun's avatar zhujiashun

revived_from_all_failed: fix UT

parent 686771fe
......@@ -110,7 +110,7 @@ bool GetRecoverPolicyByParams(const butil::StringPiece& params,
int64_t min_working_instances = -1;
int64_t hold_seconds = -1;
bool has_meet_params = false;
for (butil::KeyValuePairsSplitter sp(params.begin(), params.end(), ' ', '=');
for (butil::KeyValuePairsSplitter sp(params.begin(), params.end(), '=', ' ');
sp; ++sp) {
if (sp.value().empty()) {
LOG(ERROR) << "Empty value for " << sp.key() << " in lb parameter";
......
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