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:
parent
fd80a13b15
commit
b113322a28
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue