Skip to content

Commit becc346

Browse files
committed
Fixes
1 parent f018b8d commit becc346

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

my-http-server-signal-r-middleware/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ pub use signal_r_telemetry::*;
3737

3838
pub extern crate tokio_tungstenite;
3939

40+
#[derive(Debug)]
4041
pub struct SignalRConnectionId(String);
4142

4243
impl SignalRConnectionId {
@@ -55,6 +56,7 @@ impl SignalRConnectionId {
5556
}
5657
}
5758

59+
#[derive(Debug)]
5860
pub struct SignalRConnectionToken(String);
5961
impl SignalRConnectionToken {
6062
pub fn generate() -> Self {

my-http-server-signal-r-middleware/src/process_disconnect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

my-http-server-signal-r-middleware/src/signal_r_liveness_loop.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)