Skip to content

Commit

Permalink
GH-119 Cleanup const use.
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Sep 14, 2022
1 parent 88e6f0d commit c0233fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/producer_plugin/producer_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class account_failures {
max_failures_per_account = max_failures;
}

void add_idle_time( const fc::microseconds& idle ) const {
void add_idle_time( const fc::microseconds& idle ) {
block_idle_time += idle;
}

Expand Down Expand Up @@ -177,7 +177,7 @@ class account_failures {
return false;
}

void report( const fc::time_point& idle_trx_time ) const {
void report( const fc::time_point& idle_trx_time ) {
if( _log.is_enabled( fc::log_level::debug ) ) {
auto now = fc::time_point::now();
add_idle_time( now - idle_trx_time );
Expand Down Expand Up @@ -249,7 +249,7 @@ class account_failures {

std::map<account_name, account_failure> failed_accounts;
uint32_t max_failures_per_account = 3;
mutable fc::microseconds block_idle_time;
fc::microseconds block_idle_time;
uint32_t trx_success_num = 0;
uint32_t trx_fail_num = 0;
fc::microseconds trx_success_time;
Expand Down

0 comments on commit c0233fb

Please sign in to comment.