From eb947cc4d5f209e6c8ccafa03c2635b5b9dd5599 Mon Sep 17 00:00:00 2001 From: jake Date: Thu, 17 Jun 2021 12:06:01 -0600 Subject: [PATCH] rename --- src/common/mainloop/interserver.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/mainloop/interserver.rs b/src/common/mainloop/interserver.rs index 117ebc2..526e51d 100644 --- a/src/common/mainloop/interserver.rs +++ b/src/common/mainloop/interserver.rs @@ -156,14 +156,14 @@ where match output_loop_receiver.recv().await { Ok(msg) => { let payload = serde_json::to_string(&msg); - if let Ok(payload2) = payload { - let len_bytes = u32::to_le_bytes(payload2.len() as u32); + if let Ok(payload) = payload { + let len_bytes = u32::to_le_bytes(payload.len() as u32); if let Err(err) = socket.write_all(&len_bytes).await { warn!("interserver send failed: {:?}", err); break; } - if let Err(err) = socket.write_all(&payload2.as_bytes()).await { + if let Err(err) = socket.write_all(&payload.as_bytes()).await { warn!("intserserver send failed: {:?}", err); break; }