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

Use config to reject connections rather than extra state #1247

Merged
merged 1 commit into from Nov 24, 2021
Merged

Conversation

Ralith
Copy link
Collaborator

@Ralith Ralith commented Nov 21, 2021

Minor simplification. Note that ServerConfig is fairly small and contains no interior mutability, so cloning it is cheap and not a significant change in behavior.

Copy link
Collaborator

@djc djc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, thanks!

@djc djc merged commit 7dddfc1 into main Nov 24, 2021
@djc djc deleted the simplify-reject branch November 24, 2021 17:18
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.

None yet

2 participants