Skip to content

Commit

Permalink
Add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
abitmore committed Dec 13, 2023
1 parent e8a469b commit a08ac89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/net/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ namespace graphene { namespace net { namespace detail {
if (!_suspend_fetching_sync_blocks)
{
std::map<peer_connection_ptr, std::vector<item_hash_t> > sync_item_requests_to_send;

try {
{
std::set<item_hash_t> sync_items_to_request;

Expand Down Expand Up @@ -591,6 +591,7 @@ namespace graphene { namespace net { namespace detail {
// make all the requests we scheduled in the loop above
for( auto sync_item_request : sync_item_requests_to_send )
request_sync_items_from_peer( sync_item_request.first, sync_item_request.second );
} FC_CAPTURE_LOG_AND_RETHROW( (sync_item_requests_to_send.size()) )
sync_item_requests_to_send.clear();
}
else
Expand All @@ -605,6 +606,7 @@ namespace graphene { namespace net { namespace detail {
_retrigger_fetch_sync_items_loop_promise.reset();
}
} // while( !canceled )
ilog( "_fetch_sync_items_loop_done canceled" );
}

void node_impl::trigger_fetch_sync_items_loop()
Expand Down

0 comments on commit a08ac89

Please sign in to comment.