Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup Server struct #84

Merged
merged 2 commits into from
Sep 8, 2024
Merged

Cleanup Server struct #84

merged 2 commits into from
Sep 8, 2024

Conversation

lukas0008
Copy link
Contributor

This cleanup's goal is to make all Server functions only require &self. This means that Server can now be a Arc<Server> instead of Arc<Mutex<Server>>, which solves a lot of deadlock problems.

This cleanup's goal is to make all `Server` functions only require &self. This means that `Server` can now be a `Arc<Server>` instead of `Arc<Mutex<Server>>`, which solves a lot of deadlock problems.
@Snowiiii
Copy link
Member

Snowiiii commented Sep 8, 2024

Looks good to me. Server was mutable in Client mostly because of the old golden days where Players and Clients where not separate and i needed to have mutable Server in Clients(Players)

@Snowiiii Snowiiii merged commit 2ef1a13 into master Sep 8, 2024
10 checks passed
@lukas0008 lukas0008 deleted the server-cleanup branch September 8, 2024 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants