We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f72acb commit 01eef9fCopy full SHA for 01eef9f
src/protocol/mod.rs
@@ -1041,10 +1041,8 @@ impl Conn {
1041
}
1042
1043
pub fn write_packet<T: PacketType>(&mut self, packet: T) -> Result<(), Error> {
1044
- let network_debug = unsafe { NETWORK_DEBUG };
1045
-
1046
- /* TODO: debug printing packets to send
1047
- if network_debug {
+ /* TODO: fix Packet doesn't implement std::fmt::Debug
+ if is_network_debug() {
1048
println!("about to send {:?}", packet);
1049
1050
*/
@@ -1053,7 +1051,7 @@ impl Conn {
1053
1051
VarInt(packet.packet_id(self.protocol_version)).write_to(&mut buf)?;
1054
1052
packet.write(&mut buf)?;
1055
1056
1057
println!("sent bytes {:?}", buf);
1058
1059
0 commit comments