Address AI feedback

This commit is contained in:
Bart
2026-05-03 19:51:58 -04:00
parent d5d79c1d09
commit 4b83169922

View File

@@ -207,7 +207,8 @@ TransactionAcquire::takeNodes(
{
JLOG(journal_.debug()) << "Got root TXS node, already have it";
}
else if (!map_->addRootNode(SHAMapHash{hash_}, d.second, nullptr).isGood())
else if (!map_->addRootNode(SHAMapHash{hash_}, std::move(d.second), nullptr)
.isGood())
{
JLOG(journal_.warn()) << "TX acquire got bad root node";
}
@@ -216,7 +217,7 @@ TransactionAcquire::takeNodes(
haveRoot_ = true;
}
}
else if (!map_->addKnownNode(d.first, d.second, &sf).isGood())
else if (!map_->addKnownNode(d.first, std::move(d.second), &sf).isGood())
{
JLOG(journal_.warn()) << "TX acquire got bad non-root node";
return SHAMapAddNode::invalid();