-
Notifications
You must be signed in to change notification settings - Fork 89
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
Simplify code with better base classes #46
Conversation
Deduplicate code
It'll still cause an exception on .execute() if somehow a third party subscription server did the wrong thing anyway
Also remove iteratable operations from the context when they complete
This is a mega-fix, worthy of a new major release number - both for the fact that it's a large rewrite, and because of the size it may have unknowingly introduced some backwards incompatibilities. I really can't see a good way to refactor this into a smaller set of patches, and I know that it will be a mare to review... I'm using it as the new basis of the channels2 code, being used in a preproduction environment, so the django 2 code works at least :P My hope is that since the project has stagnated so long, we can just push this sooner rather than delay it forever and actually get some more eyes looking at it. |
…plicitly returned
Deduplicate code, providing separate sync and async base classes with the common code that was duplicated across backends hoisted back to these bases.
In abstracting this code, it allowed for fixing changes that had been only applied against one application server across the board. Some more fixes were introduced to.
This should fix #24, #22, #19, #10, #48, #16, #12, #8, #7