Skip to content

Commit

Permalink
revert unrelated changes
Browse files Browse the repository at this point in the history
  • Loading branch information
windycrypto committed May 3, 2018
1 parent 5cc4f0a commit ece1f8e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions libraries/net/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
#include <boost/preprocessor/cat.hpp>
#include <boost/preprocessor/stringize.hpp>

#include <fc/asio.hpp>
#include <fc/thread/thread.hpp>
#include <fc/thread/future.hpp>
#include <fc/thread/non_preemptable_scope_check.hpp>
Expand Down Expand Up @@ -91,7 +90,7 @@
#endif
#define DEFAULT_LOGGER "p2p"

//#define P2P_IN_DEDICATED_THREAD 1
#define P2P_IN_DEDICATED_THREAD 1

#define INVOCATION_COUNTER(name) \
static unsigned total_ ## name ## _counter = 0; \
Expand Down Expand Up @@ -4115,8 +4114,7 @@ namespace graphene { namespace net { namespace detail {
!_dump_node_status_task_done.valid());
if (_node_configuration.accept_incoming_connections)
_accept_loop_complete = fc::async( [=](){ accept_loop(); }, "accept_loop");
//_p2p_network_connect_loop_done = fc::async( [=]() { p2p_network_connect_loop(); }, "p2p_network_connect_loop" );
fc::asio::default_io_service().post([=]() { p2p_network_connect_loop(); });
_p2p_network_connect_loop_done = fc::async( [=]() { p2p_network_connect_loop(); }, "p2p_network_connect_loop" );
_fetch_sync_items_loop_done = fc::async( [=]() { fetch_sync_items_loop(); }, "fetch_sync_items_loop" );
_fetch_item_loop_done = fc::async( [=]() { fetch_items_loop(); }, "fetch_items_loop" );
_advertise_inventory_loop_done = fc::async( [=]() { advertise_inventory_loop(); }, "advertise_inventory_loop" );
Expand Down

0 comments on commit ece1f8e

Please sign in to comment.