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

Move server implementation to server.py #866

Merged
merged 2 commits into from
Nov 25, 2020
Merged

Conversation

florimondmanca
Copy link
Member

Follow-up to #842

#842 moved the Server code to an _impl/asyncio.py module anticipating support for multiple async environments, but this was obviously premature. I've now learnt through #863 that this just won't be as easy as "one server implementation per async library" (well it could be, but that would be at a huge code duplication cost).

This PR reverts back to a more stable and simple state: a server.py module. The sole purpose is that we have this isolated in a module, and not cluggering up the main.py module — main.py should be focused on the CLI.

Copy link
Member

@JayH5 JayH5 left a comment

Choose a reason for hiding this comment

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

Seems reasonable 😄 hope you get your Trio support eventually 🤞

@florimondmanca florimondmanca merged commit f1bcade into master Nov 25, 2020
@florimondmanca florimondmanca deleted the fm/server-module branch November 25, 2020 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants