From 7831b250623574388f35820baa1460e0b1b69249 Mon Sep 17 00:00:00 2001 From: Valmo Trindade Date: Sun, 6 Apr 2025 04:01:13 -0300 Subject: [PATCH] linted tcp socket error callback messages --- src/cot_router.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cot_router.rs b/src/cot_router.rs index d26447d..665d442 100644 --- a/src/cot_router.rs +++ b/src/cot_router.rs @@ -37,9 +37,9 @@ impl TcpClient { } Err(e) => { let _ = ctx.callback_data( - "armatak_tcp_socket", + "armatak_tcp_socket_error", "TAK Socket connection failed", - format!("Failed to connect to TCP server: {}", e), + e.to_string(), ); info!("Failed to connect to TCP server: {}", e); } @@ -53,14 +53,14 @@ impl TcpClient { info!("Failed to send message: {}", e); let _ = context.callback_data( - "armatak_tcp_socket", + "armatak_tcp_socket_error", "TAK Socket disconnected", e.to_string(), ); } } else { let _ = context.callback_null( - "armatak_tcp_socket", + "armatak_tcp_socket_error", "TAK Socket is not active", ); }