Update src/coordinator/shard_map.cpp
Co-authored-by: Jure Bajic <jure.bajic@memgraph.com>
This commit is contained in:
parent
2f77eb96ff
commit
fa972813d2
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user