Add some comments to areas that could be optimised.

This commit is contained in:
David Baker 2015-12-22 17:19:22 +00:00
parent 3fbb031745
commit 5645d9747b
3 changed files with 14 additions and 1 deletions

View file

@ -26,7 +26,9 @@ import random
logger = logging.getLogger(__name__)
# Pushers could now be moved to pull out of the event_actions table instead
# of listening on the event stream: this would avoid them having to run the
# rules again.
class Pusher(object):
INITIAL_BACKOFF = 1000
MAX_BACKOFF = 60 * 60 * 1000