Cleanup & More migration To TTP
This commit is contained in:
parent
41d4014ca5
commit
cce13a2b5a
8 changed files with 253 additions and 2226 deletions
|
|
@ -46,9 +46,9 @@ impl AnonymousClientConnection {
|
|||
pub fn start(self: Arc<Self>) {
|
||||
let self_clone = self.clone();
|
||||
tokio::spawn(async move {
|
||||
/*while let Ok(cv) = self_clone.receiver.receive().await {
|
||||
while let Ok(cv) = self_clone.receiver.receive().await {
|
||||
self_clone.clone().handle_message(cv).await;
|
||||
}*/
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -89,7 +89,14 @@ impl AnonymousClientConnection {
|
|||
if !cv.is_type(CommunicationType::pong) {
|
||||
log_cv_out!(PrintType::Client, &cv);
|
||||
}
|
||||
self.sender.send(&cv).await;
|
||||
if let Err(e) = self.sender.send(&cv).await {
|
||||
log_out!(
|
||||
self.user_id as i64,
|
||||
PrintType::Client,
|
||||
"Send failed: {:?}",
|
||||
e
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// Handle incoming message from client
|
||||
|
|
|
|||
Loading…
Reference in a new issue