explodinglabs / jsonrpcserver

Process incoming JSON-RPC requests in Python
MIT License
186 stars 40 forks source link

Refactor dispatcher.py #181

Closed bcb closed 3 years ago

bcb commented 3 years ago

This includes a big cleanup of dispatcher.py.

When fixing the async dispatcher to work in version 5, it became clear most of dispatcher.py would have to be reimplemented in async_dispatcher.py, because of the way it was structured.

So dispatcher.py was refactored to allow many of the functions to be reused by async_dispatcher.py.