mirror of https://github.com/zulip/zulip.git
70c1c31b3a
The register_json_consumer() function now expects its callback function to accept a single argument, which is the payload, as none of the callbacks cared about channel, method, and properties. This change breaks down as follows: * A couple test stubs and subclasses were simplified. * All the consume() and consume_wrapper() functions in queue_processors.py were simplified. * Two callbacks via runtornado.py were simplified. One of the callbacks was socket.respond_send_message, which had an additional caller, i.e. not register_json_consumer() calling back to it, and the caller was simplified not to pass None for the three removed arguments. (imported from commit 792316e20be619458dd5036745233f37e6ffcf43) |
||
---|---|---|
.. | ||
commands | ||
__init__.py |