Fix benchmarks too

This change will make these benchmarks way slower, because its now
cloning the transaction vector each iteration instead of the ref
counts. We need to rethink these.
This commit is contained in:
Greg Fitzgerald
2018-06-25 19:31:42 -06:00
committed by Greg Fitzgerald
parent d5c0557891
commit 14d624ee40
2 changed files with 34 additions and 30 deletions

View File

@@ -660,9 +660,8 @@ mod bench {
let timer = Duration::new(1, 0);
match r.recv_timeout(timer) {
Ok(msgs) => {
let msgs_ = msgs.clone();
*rvs.lock().unwrap() += msgs.read().unwrap().packets.len();
recycler.recycle(msgs_);
recycler.recycle(msgs);
}
_ => (),
}