This commit is contained in:
Bastian Gruber 2023-05-21 14:58:16 +02:00
parent 27dcd62e1f
commit 66b9850ed6
No known key found for this signature in database
GPG key ID: BE9F8C772B188CBF

View file

@ -203,6 +203,7 @@ impl Handler {
.await; .await;
} }
ClientFrames::WantHeartbeat { interval } => { ClientFrames::WantHeartbeat { interval } => {
info!("Receive hearbet request with interval {interval}");
if interval > 0 { if interval > 0 {
tokio::spawn(async move { tokio::spawn(async move {
let mut heartbeat = Heartbeat::new(interval, send_message.clone()); let mut heartbeat = Heartbeat::new(interval, send_message.clone());
@ -211,6 +212,7 @@ impl Handler {
} }
} }
ClientFrames::IAmCamera { road, mile, limit } => { ClientFrames::IAmCamera { road, mile, limit } => {
info!("Receive new camera {road} {mile} {limit}");
if self.connection_type.is_some() { if self.connection_type.is_some() {
return Err("Already connected".into()); return Err("Already connected".into());
} }
@ -227,6 +229,7 @@ impl Handler {
); );
} }
ClientFrames::IAmDispatcher { roads } => { ClientFrames::IAmDispatcher { roads } => {
info!("Receive new dispatcher {roads:?}");
if self.connection_type.is_some() { if self.connection_type.is_some() {
return Err("Already connected".into()); return Err("Already connected".into());
} }