| 215 | } |
| 216 | |
| 217 | inline bool UpdateServices(TSrvs& srvs, i64& version) const { |
| 218 | if (SelfVersion_.load() == version) { |
| 219 | return false; |
| 220 | } |
| 221 | |
| 222 | srvs.clear(); |
| 223 | |
| 224 | TGuard<TSpinLock> guard(L_); |
| 225 | |
| 226 | for (const auto& it : *this) { |
| 227 | srvs[TParsedLocation(it.first).Service] = it.second; |
| 228 | } |
| 229 | version = SelfVersion_.load(); |
| 230 | |
| 231 | return true; |
| 232 | } |
| 233 | |
| 234 | inline TListenAddrs ListenAddrs() const { |
| 235 | TListenAddrs addrs; |
nothing calls this directly
no test coverage detected