Create separate methods for getting messages to push
for the email and http pushers rather than trying to make a single method that will work with their conflicting requirements. The http pusher needs to get the messages in ascending stream order, and doesn't want to miss a message. The email pusher needs to get the messages in descending timestamp order, and doesn't mind if it misses messages.
Showing
- synapse/push/emailpusher.py 2 additions, 3 deletionssynapse/push/emailpusher.py
- synapse/push/httppusher.py 2 additions, 1 deletionsynapse/push/httppusher.py
- synapse/replication/slave/storage/events.py 5 additions, 2 deletionssynapse/replication/slave/storage/events.py
- synapse/storage/event_push_actions.py 154 additions, 45 deletionssynapse/storage/event_push_actions.py
- tests/storage/test_event_push_actions.py 41 additions, 0 deletionstests/storage/test_event_push_actions.py
Loading
Please register or sign in to comment