Fix some minor typos

This commit is contained in:
Kolibroid committed 2024-08-19 17:52:04 +01:00
1 parent 43fbb6a68d
commit 1a21290e0f
14 files changed
+27 -27

No files matched your search

+4 -4
View File
@@ -65,7 +65,7 @@ pub struct Client {
pub protocol_version: i32,
pub connection_state: ConnectionState,
pub encrytion: bool,
pub encryption: bool,
pub closed: bool,
pub token: Rc<Token>,
pub connection: TcpStream,
@@ -89,7 +89,7 @@ impl Client {
connection,
enc: PacketEncoder::default(),
dec: PacketDecoder::default(),
encrytion: true,
encryption: true,
closed: false,
client_packets_queue: VecDeque::new(),
}
@@ -105,7 +105,7 @@ impl Client {
&mut self,
shared_secret: &[u8], // decrypted
) -> Result<(), EncryptionError> {
self.encrytion = true;
self.encryption = true;
let crypt_key: [u8; 16] = shared_secret
.try_into()
.map_err(|_| EncryptionError::SharedWrongLength)?;
@@ -379,7 +379,7 @@ impl Client {
.unwrap_or_else(|_| self.close());
}
_ => {
log::warn!("Cant't kick in {:?} State", self.connection_state)
log::warn!("Can't kick in {:?} State", self.connection_state)
}
}
self.close()