File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
example_apps/example_util/src
server/swimos_server_app/src/server Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,9 @@ use tokio::{select, sync::oneshot};
23
23
use tracing_subscriber:: { filter:: LevelFilter , EnvFilter } ;
24
24
25
25
pub async fn manage_handle ( handle : ServerHandle ) {
26
- until_termination ( handle, None ) . await . expect ( "Failed to register interrupt handler." ) ;
26
+ until_termination ( handle, None )
27
+ . await
28
+ . expect ( "Failed to register interrupt handler." ) ;
27
29
}
28
30
pub async fn manage_handle_report (
29
31
handle : ServerHandle ,
@@ -35,7 +37,9 @@ pub async fn manage_handle_report(
35
37
} ) ;
36
38
g
37
39
} ) ;
38
- until_termination ( handle, f) . await . expect ( "Failed to register interrupt handler." ) ;
40
+ until_termination ( handle, f)
41
+ . await
42
+ . expect ( "Failed to register interrupt handler." ) ;
39
43
}
40
44
41
45
struct FormatMap < ' a , K , V > ( & ' a HashMap < K , V > ) ;
Original file line number Diff line number Diff line change @@ -151,7 +151,6 @@ pub mod wait {
151
151
mut handle : ServerHandle ,
152
152
bound : Option < Box < dyn FnOnce ( SocketAddr ) + Send > > ,
153
153
) -> Result < ( ) , RegistrationFailed > {
154
-
155
154
let wait_for_ctrl_c = async move {
156
155
let mut result = Ok ( ( ) ) ;
157
156
let mut shutdown_hook = Box :: pin ( async { tokio:: signal:: ctrl_c ( ) . await } ) ;
You can’t perform that action at this time.
0 commit comments