mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
remove debug prints
This commit is contained in:
parent
dac943e3d7
commit
d6f0449344
1 changed files with 0 additions and 5 deletions
|
@ -11,7 +11,6 @@ where
|
|||
{
|
||||
// Packet Length
|
||||
let length_result = stream.read_varint().await;
|
||||
println!("length_result: {:?}", length_result);
|
||||
match length_result {
|
||||
Ok(length) => {
|
||||
let mut buf = vec![0; length as usize];
|
||||
|
@ -21,8 +20,6 @@ where
|
|||
.await
|
||||
.map_err(|e| e.to_string())?;
|
||||
|
||||
println!("buf: {:?}", buf);
|
||||
|
||||
Ok(buf)
|
||||
}
|
||||
Err(_) => Err("length wider than 21-bit".to_string()),
|
||||
|
@ -117,10 +114,8 @@ where
|
|||
let polled = self.as_mut().stream.as_mut().poll_read(cx, buf);
|
||||
match polled {
|
||||
std::task::Poll::Ready(r) => {
|
||||
println!("encrypted packet {:?}", buf.initialized_mut());
|
||||
if let Some(cipher) = self.as_mut().cipher.get_mut() {
|
||||
azalea_auth::encryption::decrypt_packet(cipher, buf.initialized_mut());
|
||||
println!("decrypted packet {:?}", buf.initialized_mut());
|
||||
}
|
||||
match r {
|
||||
Ok(()) => std::task::Poll::Ready(Ok(())),
|
||||
|
|
Loading…
Add table
Reference in a new issue