Update src/coordinator/shard_map.cpp

Co-authored-by: Jure Bajic <jure.bajic@memgraph.com>
This commit is contained in:
Tyler Neely 2022-10-31 19:05:19 +01:00 committed by GitHub
parent 2f77eb96ff
commit fa972813d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -233,7 +233,7 @@ std::unordered_map<uint64_t, std::string> ShardMap::IdToNames() {
const auto map_type_ids = [&id_to_names](const auto &name_to_id_type) {
for (const auto &[name, id] : name_to_id_type) {
id_to_names.insert({id.AsUint(), name});
id_to_names.emplace(id.AsUint(), name);
}
};