File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " hyperlane"
3- version = " 17.3.3 "
3+ version = " 17.3.4 "
44readme = " README.md"
55edition = " 2024"
66authors = [" root@ltpp.vip" ]
Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ use std::{
3636 sync:: { Arc , OnceLock } ,
3737} ;
3838
39+ #[ cfg( test) ]
40+ use tokio:: time:: sleep;
3941use {
4042 inventory:: collect,
4143 lombok_macros:: * ,
Original file line number Diff line number Diff line change @@ -438,8 +438,8 @@ async fn main() {
438438 server. route :: < DynamicRoute > ( "/regex/{file:^.*$}" ) ;
439439 let server_control_hook_1: ServerControlHook = server. run ( ) . await . unwrap_or_default ( ) ;
440440 let server_control_hook_2: ServerControlHook = server_control_hook_1. clone ( ) ;
441- tokio :: spawn ( async move {
442- tokio :: time :: sleep ( std :: time :: Duration :: from_secs ( 60 ) ) . await ;
441+ spawn ( async move {
442+ sleep ( Duration :: from_secs ( 60 ) ) . await ;
443443 server_control_hook_2. shutdown ( ) . await ;
444444 } ) ;
445445 server_control_hook_1. wait ( ) . await ;
You can’t perform that action at this time.
0 commit comments