File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
frameworks/Rust/hyperlane/src Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -185,9 +185,7 @@ pub async fn random_world_row(db_pool: &DbPoolConnection) -> QueryRow {
185185pub 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
Original file line number Diff line number Diff 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} ;
2320pub ( crate ) use lazy:: * ;
You can’t perform that action at this time.
0 commit comments