Skip to content

Commit

Permalink
remove commit inside redundant meter because it won't work with trans…
Browse files Browse the repository at this point in the history
…actional methods (#516)
  • Loading branch information
ermalkaleci committed Jun 9, 2021
1 parent 3c64d53 commit 72dfbe4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions bencher/src/redundant_meter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ impl RedundantMeter {
}

let timestamp = frame_benchmarking::benchmarking::current_time();
frame_benchmarking::benchmarking::commit_db();
let (reads, repeat_reads, writes, repeat_writes) = frame_benchmarking::benchmarking::read_write_count();

let identifier: Vec<u8> = thread_rng()
Expand All @@ -61,7 +60,6 @@ impl RedundantMeter {
pub fn leaving_method(&mut self, identifier: Vec<u8>) {
if let Some(current) = &self.current {
if current.identifier.eq(&identifier) {
frame_benchmarking::benchmarking::commit_db();
let (reads, repeat_reads, writes, repeat_writes) = frame_benchmarking::benchmarking::read_write_count();
let timestamp = frame_benchmarking::benchmarking::current_time();

Expand Down

0 comments on commit 72dfbe4

Please sign in to comment.