Move instead of copy

pull/2106/head
Tatsuhiro Tsujikawa 2023-09-18 10:22:22 +09:00
parent f0015d2175
commit c2109a5aca
1 changed files with 2 additions and 2 deletions

View File

@ -196,8 +196,8 @@ void DHTRoutingTableDeserializer::deserialize(const std::string& filename)
nodes.push_back(node);
}
localNode_ = localNode;
nodes_ = nodes;
localNode_ = std::move(localNode);
nodes_ = std::move(nodes);
A2_LOG_INFO("DHT routing table was loaded successfully");
}