mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Simplify PeerSet, InboundLedger and TransactionAcquire:
* Use std::mutex instead of std::recursive_mutex * Remove unnecessary type alias * Use std::set instead of ripple::hash_map * Don't reinvent virtual functions
This commit is contained in:
@@ -1147,7 +1147,7 @@ PeerImp::onMessage (std::shared_ptr <protocol::TMLedgerData> const& m)
|
||||
|
||||
if (m->has_requestcookie ())
|
||||
{
|
||||
Peer::ptr target = overlay_.findPeerByShortID (m->requestcookie ());
|
||||
std::shared_ptr<Peer> target = overlay_.findPeerByShortID (m->requestcookie ());
|
||||
if (target)
|
||||
{
|
||||
m->clear_requestcookie ();
|
||||
|
||||
Reference in New Issue
Block a user