Skip to content

Commit

Permalink
rename function according to advice
Browse files Browse the repository at this point in the history
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
  • Loading branch information
sticnarf committed Feb 14, 2020
1 parent 506d176 commit e402f79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/read_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ impl<E: Engine, R: FlowStatsReporter> ReadPoolRunner<E, R> {
}
}

// Only flush metrics by tick
fn maybe_flush_metrics(&self) {
// Do nothing if no tick passed
fn flush_metrics_on_tick(&self) {
const TICK_INTERVAL: Duration = Duration::from_secs(1);

thread_local! {
Expand Down

0 comments on commit e402f79

Please sign in to comment.