Change by-value to by-reference to persist vote

This commit is contained in:
Howard Hinnant
2022-07-27 12:32:56 -04:00
committed by Nik Bougalis
parent e5275b8577
commit 21a3f4a5b5

View File

@@ -425,7 +425,7 @@ AmendmentTableImpl::AmendmentTableImpl(
} }
else // up-vote else // up-vote
{ {
auto s = add(amend_hash, lock); AmendmentState& s = add(amend_hash, lock);
JLOG(j_.debug()) << "Amendment {" << *amendment_name << ", " JLOG(j_.debug()) << "Amendment {" << *amendment_name << ", "
<< amend_hash << "} is upvoted."; << amend_hash << "} is upvoted.";