mirror of
https://github.com/wownero/wownero.git
synced 2026-10-20 08:58:36 +02:00
Change p2p connection map from raw pointers to weak_ptrs
This commit is contained in:
committed by
Lee *!* Clagett
parent
1bf1dff4be
commit
b8028e31ad
@@ -750,7 +750,7 @@ TEST(cryptonote_protocol_handler, race_condition)
|
||||
using context_t = contexts::p2p;
|
||||
using handler_t = epee::levin::async_protocol_handler<context_t>;
|
||||
using connection_t = epee::net_utils::connection<handler_t>;
|
||||
using connection_ptr = boost::shared_ptr<connection_t>;
|
||||
using connection_ptr = std::shared_ptr<connection_t>;
|
||||
using connections_t = std::vector<connection_ptr>;
|
||||
using shared_state_t = typename connection_t::shared_state;
|
||||
using shared_state_ptr = std::shared_ptr<shared_state_t>;
|
||||
@@ -1448,7 +1448,7 @@ TEST(node_server, race_condition)
|
||||
};
|
||||
using handler_t = epee::levin::async_protocol_handler<context_t>;
|
||||
using connection_t = epee::net_utils::connection<handler_t>;
|
||||
using connection_ptr = boost::shared_ptr<connection_t>;
|
||||
using connection_ptr = std::shared_ptr<connection_t>;
|
||||
using shared_state_t = typename connection_t::shared_state;
|
||||
using shared_state_ptr = std::shared_ptr<shared_state_t>;
|
||||
using io_context_t = boost::asio::io_context;
|
||||
|
||||
Reference in New Issue
Block a user