Skip to content

Commit d1961ab

Browse files
committed
wip
1 parent 67f3839 commit d1961ab

File tree

1 file changed

+2
-1
lines changed
  • frameworks/Rust/ntex/src

1 file changed

+2
-1
lines changed

frameworks/Rust/ntex/src/db.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ impl PgConnection {
109109
let mut ids = Vec::with_capacity(num);
110110
let mut numbers = Vec::with_capacity(num);
111111
let mut worlds = SmallVec::<[_; 32]>::new();
112+
let mut queries = SmallVec::<[_; 32]>::new();
112113

113114
(0..num).for_each(|_| {
114115
let w_id = (rng.generate::<u32>() % 10_000 + 1) as i32;
@@ -122,7 +123,7 @@ impl PgConnection {
122123
id: ids[idx],
123124
randomnumber: numbers[idx],
124125
});
125-
let _ = self.cl.query_one(&self.world, &[&ids[idx]]);
126+
queries.push(self.cl.query_one(&self.world, &[&ids[idx]]));
126127
});
127128
let _ = self
128129
.cl

0 commit comments

Comments
 (0)