diff options
| author | mat <github@matdoes.dev> | 2021-12-16 23:33:06 -0600 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2021-12-16 23:33:06 -0600 |
| commit | c4eecaf13a4f8f0a81dc278078727df23caa8411 (patch) | |
| tree | 5082f54d1a9242281d80c250e587235a3ac3755b /azalea-protocol/src/packets/handshake | |
| parent | 1dc56b6f519f386b6e0b5eac47a84576cedbbb33 (diff) | |
| download | azalea-drasl-c4eecaf13a4f8f0a81dc278078727df23caa8411.tar.xz | |
try to implement compression
Diffstat (limited to 'azalea-protocol/src/packets/handshake')
| -rw-r--r-- | azalea-protocol/src/packets/handshake/client_intention_packet.rs | 2 | ||||
| -rw-r--r-- | azalea-protocol/src/packets/handshake/mod.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/azalea-protocol/src/packets/handshake/client_intention_packet.rs b/azalea-protocol/src/packets/handshake/client_intention_packet.rs index 868626b3..5b50c7cc 100644 --- a/azalea-protocol/src/packets/handshake/client_intention_packet.rs +++ b/azalea-protocol/src/packets/handshake/client_intention_packet.rs @@ -28,7 +28,7 @@ impl ClientIntentionPacket { } pub async fn read<T: tokio::io::AsyncRead + std::marker::Unpin + std::marker::Send>( - _buf: &mut BufReader<T>, + _buf: &mut T, ) -> Result<HandshakePacket, String> { Err("ClientIntentionPacket::parse not implemented".to_string()) // Ok(ClientIntentionPacket {}.get()) diff --git a/azalea-protocol/src/packets/handshake/mod.rs b/azalea-protocol/src/packets/handshake/mod.rs index 01010e1e..70e1a90d 100644 --- a/azalea-protocol/src/packets/handshake/mod.rs +++ b/azalea-protocol/src/packets/handshake/mod.rs @@ -33,7 +33,7 @@ impl ProtocolPacket for HandshakePacket { async fn read<T: tokio::io::AsyncRead + std::marker::Unpin + std::marker::Send>( id: u32, flow: &PacketFlow, - buf: &mut BufReader<T>, + buf: &mut T, ) -> Result<HandshakePacket, String> where Self: Sized, |
