Update server_profile.rs

removed the need for a arc for server properties
This commit is contained in:
michael-bailey 2020-09-27 08:47:02 +01:00 committed by michael bailey
parent 659a26b6a8
commit 8aa499ab03
1 changed files with 3 additions and 3 deletions

View File

@ -61,9 +61,9 @@ impl Server {
let (sender, receiver) = unbounded();
Self {
name: Arc::new(name.to_string()),
address: Arc::new(address.to_string()),
author: Arc::new(author.to_string()),
name: name.to_string(),
address: address.to_string(),
author: author.to_string(),
connected_clients: Arc::new(Mutex::new(HashMap::new())),
thread_pool: ThreadPool::new(16),