mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-10-01 01:26:08 -04:00
tcp work
This commit is contained in:
parent
fbe02e605b
commit
cd99a4210b
@ -52,7 +52,8 @@ impl RawTcpNetworkConnection {
|
||||
let header = [b'V', b'L', len as u8, (len >> 8) as u8];
|
||||
|
||||
network_result_try!(stream.write_all(&header).await.into_network_result()?);
|
||||
stream.write_all(&message).await.into_network_result()
|
||||
network_result_try!(stream.write_all(&message).await.into_network_result()?);
|
||||
stream.flush().await.into_network_result()
|
||||
}
|
||||
|
||||
#[instrument(level="trace", err, skip(self, message), fields(network_result, message.len = message.len()))]
|
||||
|
Loading…
Reference in New Issue
Block a user