mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
net/message: Always flush on send_packet()
This commit is contained in:
@@ -255,7 +255,7 @@ impl Channel {
|
||||
);
|
||||
|
||||
let stream = &mut *self.writer.lock().await;
|
||||
let _written = message::send_packet(stream, packet).await?;
|
||||
let _ = message::send_packet(stream, packet).await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
@@ -155,5 +155,7 @@ pub async fn send_packet<W: AsyncWrite + Unpin + Sized>(
|
||||
written += packet.payload.len();
|
||||
debug!(target: "net::message", "Sent payload {} bytes", packet.payload.len() as u64);
|
||||
|
||||
stream.flush().await?;
|
||||
|
||||
Ok(written)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user