mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-01 16:35:53 +00:00
Tiny cleanups.
This commit is contained in:
@@ -534,7 +534,6 @@ void LedgerConsensus::mapComplete(const uint256& hash, SHAMap::ref map, bool acq
|
|||||||
if (mAcquired.find(hash) != mAcquired.end())
|
if (mAcquired.find(hash) != mAcquired.end())
|
||||||
{
|
{
|
||||||
mAcquiring.erase(hash);
|
mAcquiring.erase(hash);
|
||||||
cLog(lsINFO) << "Already had the TXS";
|
|
||||||
return; // we already have this map
|
return; // we already have this map
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -589,6 +589,7 @@ void server<endpoint>::connection<connection_type>::handle_read_request(
|
|||||||
reply.append("\0", 1);
|
reply.append("\0", 1);
|
||||||
|
|
||||||
m_version = -1;
|
m_version = -1;
|
||||||
|
assert(m_response.get_status_code() != http::status_code::SWITCHING_PROTOCOLS);
|
||||||
shared_const_buffer buffer(reply);
|
shared_const_buffer buffer(reply);
|
||||||
m_connection.get_socket().async_write(
|
m_connection.get_socket().async_write(
|
||||||
shared_const_buffer(reply),
|
shared_const_buffer(reply),
|
||||||
|
|||||||
Reference in New Issue
Block a user