Skip to content
Snippets Groups Projects
Unverified Commit 72dfbe49 authored by Ermal Kaleci's avatar Ermal Kaleci Committed by GitHub
Browse files

remove commit inside redundant meter because it won't work with transactional methods (#516)

parent 3c64d532
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,6 @@ impl RedundantMeter { ...@@ -35,7 +35,6 @@ impl RedundantMeter {
} }
let timestamp = frame_benchmarking::benchmarking::current_time(); 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 (reads, repeat_reads, writes, repeat_writes) = frame_benchmarking::benchmarking::read_write_count();
let identifier: Vec<u8> = thread_rng() let identifier: Vec<u8> = thread_rng()
...@@ -61,7 +60,6 @@ impl RedundantMeter { ...@@ -61,7 +60,6 @@ impl RedundantMeter {
pub fn leaving_method(&mut self, identifier: Vec<u8>) { pub fn leaving_method(&mut self, identifier: Vec<u8>) {
if let Some(current) = &self.current { if let Some(current) = &self.current {
if current.identifier.eq(&identifier) { if current.identifier.eq(&identifier) {
frame_benchmarking::benchmarking::commit_db();
let (reads, repeat_reads, writes, repeat_writes) = frame_benchmarking::benchmarking::read_write_count(); let (reads, repeat_reads, writes, repeat_writes) = frame_benchmarking::benchmarking::read_write_count();
let timestamp = frame_benchmarking::benchmarking::current_time(); let timestamp = frame_benchmarking::benchmarking::current_time();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment