Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Add comment and cleanup if
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Dec 14, 2021
1 parent f2f63f7 commit 383244f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions plugins/net_plugin/net_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1351,8 +1351,7 @@ namespace eosio {
void connection::sync_timeout( boost::system::error_code ec ) {
if( !ec ) {
my_impl->sync_master->sync_reassign_fetch( shared_from_this(), benign_other );
} else if( ec == boost::asio::error::operation_aborted ) {
} else {
} else if( ec != boost::asio::error::operation_aborted ) { // don't log on operation_aborted, called on destroy
fc_elog( logger, "setting timer for sync request got error ${ec}", ("ec", ec.message()) );
}
}
Expand All @@ -1375,8 +1374,7 @@ namespace eosio {
void connection::fetch_timeout( boost::system::error_code ec ) {
if( !ec ) {
my_impl->dispatcher->retry_fetch( shared_from_this() );
} else if( ec == boost::asio::error::operation_aborted ) {
} else {
} else if( ec != boost::asio::error::operation_aborted ) { // don't log on operation_aborted, called on destroy
fc_elog( logger, "setting timer for fetch request got error ${ec}", ("ec", ec.message() ) );
}
}
Expand Down

0 comments on commit 383244f

Please sign in to comment.