We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67f3839 commit d1961abCopy full SHA for d1961ab
frameworks/Rust/ntex/src/db.rs
@@ -109,6 +109,7 @@ impl PgConnection {
109
let mut ids = Vec::with_capacity(num);
110
let mut numbers = Vec::with_capacity(num);
111
let mut worlds = SmallVec::<[_; 32]>::new();
112
+ let mut queries = SmallVec::<[_; 32]>::new();
113
114
(0..num).for_each(|_| {
115
let w_id = (rng.generate::<u32>() % 10_000 + 1) as i32;
@@ -122,7 +123,7 @@ impl PgConnection {
122
123
id: ids[idx],
124
randomnumber: numbers[idx],
125
});
- let _ = self.cl.query_one(&self.world, &[&ids[idx]]);
126
+ queries.push(self.cl.query_one(&self.world, &[&ids[idx]]));
127
128
let _ = self
129
.cl
0 commit comments