0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

ircd::server: Improve assertion for no key movement.

This commit is contained in:
Jason Volk 2018-05-07 16:05:13 -07:00
parent fd80a13b15
commit b113322a28

View file

@ -94,7 +94,7 @@ ircd::server::get(const net::hostport &hostport)
const string_view key{peer->hostname};
it = peers.emplace_hint(it, key, std::move(peer));
assert(it->second->hostname.data() == key.data());
assert(it->second->hostname.data() == it->first.data());
}
return *it->second;