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 31ba915 commit 73740f6Copy full SHA for 73740f6
frameworks/Rust/hyperlane/src/route.rs
@@ -34,11 +34,7 @@ pub async fn queries(controller_data: ControllerData) {
34
.min(ROW_LIMIT as Queries)
35
.max(1);
36
let db_pool: DbPoolConnection = get_db_connection().await;
37
- for _ in 0..queries {}
38
- let futures: Vec<_> = (0..queries)
39
- .map(|_| async { random_world_row(&db_pool).await })
40
- .collect();
41
- let data = join_all(futures).await;
+ let data: Vec<QueryRow> = get_some_row_id(queries, &db_pool).await;
42
let _ = controller_data
43
.set_response_body(serde_json::to_string(&data).unwrap_or_default())
44
.await;
0 commit comments