added back client thread pool

This commit is contained in:
Mitch161 2020-07-20 20:05:22 +01:00
parent 52e97bbaad
commit cfe48835ac
1 changed files with 2 additions and 2 deletions

View File

@ -66,9 +66,9 @@ impl<'z> Server<'z> {
clients_hashmap.insert(uuid.to_string(), client.get_transmitter().clone()); clients_hashmap.insert(uuid.to_string(), client.get_transmitter().clone());
std::mem::drop(clients_hashmap); std::mem::drop(clients_hashmap);
/*self.thread_pool.execute(move || { self.thread_pool.execute(move || {
client.handle_connection(); client.handle_connection();
});*/ });
let params: HashMap<String, String> = [(String::from("name"), username.clone()), (String::from("host"), address.clone()), (String::from("uuid"), uuid.clone())].iter().cloned().collect(); let params: HashMap<String, String> = [(String::from("name"), username.clone()), (String::from("host"), address.clone()), (String::from("uuid"), uuid.clone())].iter().cloned().collect();
let new_client = Commands::Client(Some(params)); let new_client = Commands::Client(Some(params));