require consistency in lookup()
@@ -21,10 +21,9 @@ LocalRpcMonitorMap::lookup(const ServiceMapping &mapping) {
auto iter = _map.find(mapping.name);
if (iter != _map.end()) {
PerService & psd = iter->second;
- if (psd.mapping.spec == mapping.spec) {
+ LOG_ASSERT(psd.mapping.spec == mapping.spec);
return &psd;
}
- }
return nullptr;
}
