Skip to content

Commit

Permalink
Merge branch 'main' into get_serialized_block
Browse files Browse the repository at this point in the history
  • Loading branch information
linh2931 authored Sep 16, 2024
2 parents 5211dea + b2017c0 commit 5ce9f87
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions plugins/net_plugin/net_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,14 +553,6 @@ namespace eosio {
void start_expire_timer();
void start_monitors();

// we currently pause on snapshot generation
void wait_if_paused() const {
controller& cc = chain_plug->chain();
while (cc.is_writing_snapshot()) {
std::this_thread::sleep_for(std::chrono::milliseconds(10));
}
}

void expire();
/** \name Peer Timestamps
* Time message handling
Expand Down Expand Up @@ -2969,8 +2961,6 @@ namespace eosio {
return;
}

my_impl->wait_if_paused();

boost::asio::async_read( *socket,
pending_message_buffer.get_buffer_sequence_for_boost_async_read(), completion_handler,
boost::asio::bind_executor( strand,
Expand Down

0 comments on commit 5ce9f87

Please sign in to comment.