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 7c26ff5 commit 53b19f1Copy full SHA for 53b19f1
frameworks/Rust/ntex/src/db.rs
@@ -117,18 +117,15 @@ impl PgConnection {
117
});
118
ids.sort();
119
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
+ (0..num).map(|idx| {
+ worlds.push(World {
+ id: ids[idx],
+ randomnumber: numbers[idx],
+ });
+ self.cl.query_one(&self.world, &[&ids[idx]])
+ let _ = self
+ .cl
132
.query(&self.updates, &[&ids, &numbers])
133
.await
134
.unwrap();
0 commit comments