Skip to content

Commit 53b19f1

Browse files
committed
wip
1 parent 7c26ff5 commit 53b19f1

File tree

1 file changed

+9
-12
lines changed
  • frameworks/Rust/ntex/src

1 file changed

+9
-12
lines changed

frameworks/Rust/ntex/src/db.rs

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -117,18 +117,15 @@ impl PgConnection {
117117
});
118118
ids.sort();
119119

120-
let _ = (0..num)
121-
.map(|idx| {
122-
worlds.push(World {
123-
id: ids[idx],
124-
randomnumber: numbers[idx],
125-
});
126-
self.cl.query_one(&self.world, &[&ids[idx]])
127-
})
128-
.last()
129-
.unwrap()
130-
.await;
131-
self.cl
120+
(0..num).map(|idx| {
121+
worlds.push(World {
122+
id: ids[idx],
123+
randomnumber: numbers[idx],
124+
});
125+
self.cl.query_one(&self.world, &[&ids[idx]])
126+
});
127+
let _ = self
128+
.cl
132129
.query(&self.updates, &[&ids, &numbers])
133130
.await
134131
.unwrap();

0 commit comments

Comments
 (0)