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:
Steve Howell
2013-07-01 18:14:58 -04:00
parent a4db7de330
commit d94f91fd43

View File

@@ -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.