Skip to content

Commit 72dfbe4

Browse files
authored
remove commit inside redundant meter because it won't work with transactional methods (#516)
1 parent 3c64d53 commit 72dfbe4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

bencher/src/redundant_meter.rs

-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ impl RedundantMeter {
3535
}
3636

3737
let timestamp = frame_benchmarking::benchmarking::current_time();
38-
frame_benchmarking::benchmarking::commit_db();
3938
let (reads, repeat_reads, writes, repeat_writes) = frame_benchmarking::benchmarking::read_write_count();
4039

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

0 commit comments

Comments
 (0)