pretty
This commit is contained in:
@@ -317,10 +317,10 @@ pub fn parse_message(
|
||||
String::from_utf8(received_message[LENGTH..(msg_length + LENGTH + 4)].to_vec())
|
||||
{
|
||||
let err_msg = format!("Error received from peer {} : {}", ip, err_received);
|
||||
let _ = cmd_tx_clone.send(NetworkEvent::Error(err_msg));
|
||||
let _ = cmd_tx_clone.send(NetworkEvent::Error(err_msg, "".to_owned()));
|
||||
} else {
|
||||
let err_msg = format!("Error received from peer {} : N/A", ip,);
|
||||
let _ = cmd_tx_clone.send(NetworkEvent::Error(err_msg));
|
||||
let _ = cmd_tx_clone.send(NetworkEvent::Error(err_msg, "".to_owned()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user