diff options
| author | Ubuntu <github@matdoes.dev> | 2022-08-31 18:52:26 +0000 |
|---|---|---|
| committer | Ubuntu <github@matdoes.dev> | 2022-08-31 18:52:26 +0000 |
| commit | 4678327848738e6b58a793321382b6ee0b528866 (patch) | |
| tree | 40c2b78a98fdbd44a908b453fda8fc93a33cecd6 /azalea-protocol/src | |
| parent | cbc0a13d9b19552976bc7177567cbaab9993127a (diff) | |
| download | azalea-drasl-4678327848738e6b58a793321382b6ee0b528866.tar.xz | |
remove some comments in az-protocol::read
Diffstat (limited to 'azalea-protocol/src')
| -rwxr-xr-x | azalea-protocol/src/read.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/azalea-protocol/src/read.rs b/azalea-protocol/src/read.rs index e2f6f0aa..e7466c12 100755 --- a/azalea-protocol/src/read.rs +++ b/azalea-protocol/src/read.rs @@ -187,31 +187,19 @@ pub async fn read_packet<'a, P: ProtocolPacket, R>( where R: AsyncRead + std::marker::Unpin + std::marker::Send + std::marker::Sync, { - // let start_time = std::time::Instant::now(); - - // println!("decrypting packet ({}ms)", start_time.elapsed().as_millis()); // if we were given a cipher, decrypt the packet let mut encrypted_stream = EncryptedStream { cipher: Cell::new(cipher), stream: &mut Pin::new(stream), }; - // println!("splitting packet ({}ms)", start_time.elapsed().as_millis()); let mut buf = frame_splitter(&mut encrypted_stream).await?; if let Some(compression_threshold) = compression_threshold { - // println!( - // "decompressing packet ({}ms)", - // start_time.elapsed().as_millis() - // ); buf = compression_decoder(&mut buf.as_slice(), compression_threshold)?; } - // println!("decoding packet ({}ms)", start_time.elapsed().as_millis()); let packet = packet_decoder(&mut buf.as_slice())?; - // println!("decoded packet ({}ms)", start_time.elapsed().as_millis()); - - if !buf.is_empty() {} Ok(packet) } |
