Prevent multiple device list updates from breaking a batch send (#5156)

fixes #5153
This commit is contained in:
Andrew Morgan 2019-06-06 23:54:00 +01:00 committed by Richard van der Hoff
parent a11865016e
commit 2d1d7b7e6f
4 changed files with 198 additions and 33 deletions

View file

@ -349,9 +349,10 @@ class PerDestinationQueue(object):
@defer.inlineCallbacks
def _get_new_device_messages(self, limit):
last_device_list = self._last_device_list_stream_id
# Will return at most 20 entries
# Retrieve list of new device updates to send to the destination
now_stream_id, results = yield self._store.get_devices_by_remote(
self._destination, last_device_list
self._destination, last_device_list, limit=limit,
)
edus = [
Edu(