feat: introduce threadpool

This commit is contained in:
Michel de Graaf
2025-06-29 23:09:06 +02:00
parent b69be1c6f0
commit 0d3ab4566e
4 changed files with 79 additions and 4 deletions
+3 -2
View File
@@ -53,7 +53,7 @@ pub struct Peer {
pub obfuscated_port: i8,
}
impl Peer {
#[allow(clippy::too_many_arguments)]
#[allow(clippy::too_many_arguments, dead_code)]
pub fn new(
username: String,
connection_type: ConnectionType,
@@ -154,4 +154,5 @@ fn test_new_from_message2() {
assert_eq!(peer.privileged, 0);
assert_eq!(peer.unknown, 1);
assert_eq!(peer.obfuscated_port, 0);
}
}