| 1810 | } |
| 1811 | } else if (!weights.empty()) { |
| 1812 | foreachpair (const string& role, double weight, weights) { |
| 1813 | WeightInfo weightInfo; |
| 1814 | weightInfo.set_role(role); |
| 1815 | weightInfo.set_weight(weight); |
| 1816 | weightInfos.push_back(weightInfo); |
| 1817 | } |
| 1818 | registrar->apply(Owned<RegistryOperation>( |
| 1819 | new weights::UpdateWeights(weightInfos))); |
| 1820 | } |
nothing calls this directly
no test coverage detected