Skip to content

Commit c986aaf

Browse files
committed
Refactor TcpGetNode for improved code organization and readability
1 parent 82ea98d commit c986aaf

File tree

1 file changed

+2
-1
lines changed
  • crates/core/src/runtime/nodes/network_nodes

1 file changed

+2
-1
lines changed

crates/core/src/runtime/nodes/network_nodes/tcp_get.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ enum TcpClientKind {
5757

5858
#[derive(Debug)]
5959
#[flow_node("tcp request", red_name = "tcpin")]
60+
#[allow(dead_code)]
6061
struct TcpGetNode {
6162
base: BaseFlowNodeState,
6263
config: TcpGetNodeConfig,
@@ -288,7 +289,7 @@ impl TcpGetNode {
288289
}
289290
}
290291

291-
async fn read_response(&self, stream: &mut TcpStream, split_count: u32, split_char: u8) -> crate::Result<Vec<u8>> {
292+
async fn read_response(&self, stream: &mut TcpStream, _split_count: u32, split_char: u8) -> crate::Result<Vec<u8>> {
292293
match self.config.mode {
293294
TcpGetMode::Immediate => self.read_immediate().await,
294295
TcpGetMode::Time => self.read_time(stream).await,

0 commit comments

Comments
 (0)