File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
my-http-server-signal-r-middleware/src Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ pub use signal_r_telemetry::*;
3737
3838pub extern crate tokio_tungstenite;
3939
40+ #[ derive( Debug ) ]
4041pub struct SignalRConnectionId ( String ) ;
4142
4243impl SignalRConnectionId {
@@ -55,6 +56,7 @@ impl SignalRConnectionId {
5556 }
5657}
5758
59+ #[ derive( Debug ) ]
5860pub struct SignalRConnectionToken ( String ) ;
5961impl SignalRConnectionToken {
6062 pub fn generate ( ) -> Self {
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ pub async fn process_disconnect<TCtx: Send + Sync + Default + 'static>(
1414 if let Some ( removed_connection) = removed_connection {
1515 #[ cfg( feature = "debug-ws" ) ]
1616 println ! (
17- "SignalR {} is disconnected with connection token {:?}" ,
17+ "SignalR {:? } is disconnected with connection token {:?}" ,
1818 removed_connection. connection_id, removed_connection. connection_token
1919 ) ;
2020 connect_events. disconnected ( & removed_connection) . await ;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ pub async fn start<TCtx: Send + Sync + Default + 'static>(
1212) {
1313 #[ cfg( feature = "debug-ws" ) ]
1414 println ! (
15- "SignalR {} with connection token {:?} started liveness loop" ,
15+ "SignalR {:? } with connection token {:?} started liveness loop" ,
1616 my_socket_io_connection. connection_id, my_socket_io_connection. connection_token
1717 ) ;
1818
@@ -25,7 +25,7 @@ pub async fn start<TCtx: Send + Sync + Default + 'static>(
2525 if now. duration_since ( last_incoming) . as_positive_or_zero ( ) > ping_disconnect {
2626 #[ cfg( feature = "debug-ws" ) ]
2727 println ! (
28- "SignalR {} with connection token {:?} looks like dead. Disconnecting" ,
28+ "SignalR {:? } with connection token {:?} looks like dead. Disconnecting" ,
2929 my_socket_io_connection. connection_id, my_socket_io_connection. connection_token
3030 ) ;
3131 break ;
You can’t perform that action at this time.
0 commit comments