mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 18:36:36 +00:00
Simplify do_send_messages() from prior commit.
This change removes an "if True:" that was introduced to make the prior commit a bit more readable. It also combines two loops, since the second loop is no longer conditional. (imported from commit df58f1e5de72d5669f6468fbff54fb62cd22cedb)
This commit is contained in:
@@ -295,10 +295,6 @@ def do_send_messages(messages):
|
|||||||
|
|
||||||
for message in messages:
|
for message in messages:
|
||||||
cache_save_message(message['message'])
|
cache_save_message(message['message'])
|
||||||
|
|
||||||
# We can only publish messages to longpolling clients if the Tornado server is running.
|
|
||||||
if True:
|
|
||||||
for message in messages:
|
|
||||||
# Render Markdown etc. here and store (automatically) in
|
# Render Markdown etc. here and store (automatically) in
|
||||||
# memcached, so that the single-threaded Tornado server
|
# memcached, so that the single-threaded Tornado server
|
||||||
# doesn't have to.
|
# doesn't have to.
|
||||||
|
|||||||
Reference in New Issue
Block a user