Skip to content

Commit

Permalink
Better variable name and update a TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
fredclausen committed Jul 25, 2022
1 parent 964349c commit 16c6160
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/acars_router_servers/tcp/outputs/tcp_sender_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ use tokio::net::TcpStream;

// TODO: The error and info messages kicked out by StubbornIO are kinda...useless.
// It doesn't include things like host, port, etc.
// Can we fix that?
// I created an issue on the crate. I'm hoping to get a better error message. If it's not
// Fixed relatively soon I'll attempt a patch of the crate.
// https://github.com/craftytrickster/stubborn-io/issues/23

impl SenderServer<StubbornIo<TcpStream, String>> {
pub async fn send_message(mut self) {
Expand Down
4 changes: 2 additions & 2 deletions src/acars_router_servers/udp/inputs/udp_listener_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ impl UDPListenerServer {
let split_messages_by_newline: Vec<&str> =
msg_string.split_terminator('\n').collect();

for msg_by_lineline in split_messages_by_newline {
for msg_by_newline in split_messages_by_newline {
let split_messages_by_brackets: Vec<&str> =
msg_by_lineline.split_terminator("}{").collect();
msg_by_newline.split_terminator("}{").collect();
// First attempt to deserialise just the new message
for (count, msg_by_brackets) in
split_messages_by_brackets.iter().enumerate()
Expand Down

0 comments on commit 16c6160

Please sign in to comment.