Skip to content

Commit b15771b

Browse files
committed
feat: db
1 parent b349b3c commit b15771b

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

frameworks/Rust/hyperlane/src/db.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,7 @@ pub async fn random_world_row(db_pool: &DbPoolConnection) -> QueryRow {
185185
pub async fn update_world_rows(limit: Queries) -> Vec<QueryRow> {
186186
let db_pool: DbPoolConnection = get_db_connection().await;
187187
let (sql, data) = get_update_data(limit).await;
188-
spawn(async move {
189-
let _ = query(&sql).execute(&db_pool).await;
190-
});
188+
let _ = query(&sql).execute(&db_pool).await;
191189
data
192190
}
193191

frameworks/Rust/hyperlane/src/main.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ pub(crate) use hyperlane::{
1414
once_cell::sync::Lazy,
1515
serde::*,
1616
serde_json::json,
17-
tokio::{
18-
spawn,
19-
sync::{RwLock, RwLockReadGuard, RwLockWriteGuard},
20-
},
17+
tokio::sync::{RwLock, RwLockReadGuard, RwLockWriteGuard},
2118
*,
2219
};
2320
pub(crate) use lazy::*;

0 commit comments

Comments
 (0)