mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-02-06 12:05:22 -05:00
Fix appservices being backlogged and not receiving new events due to a bug in notify_interested_services
This commit is contained in:
parent
f851bc8182
commit
45fbe4ff67
@ -74,7 +74,7 @@ class ApplicationServicesHandler(object):
|
|||||||
limit = 100
|
limit = 100
|
||||||
while True:
|
while True:
|
||||||
upper_bound, events = yield self.store.get_new_events_for_appservice(
|
upper_bound, events = yield self.store.get_new_events_for_appservice(
|
||||||
upper_bound, limit
|
self.current_max, limit
|
||||||
)
|
)
|
||||||
|
|
||||||
if not events:
|
if not events:
|
||||||
@ -105,9 +105,6 @@ class ApplicationServicesHandler(object):
|
|||||||
)
|
)
|
||||||
|
|
||||||
yield self.store.set_appservice_last_pos(upper_bound)
|
yield self.store.set_appservice_last_pos(upper_bound)
|
||||||
|
|
||||||
if len(events) < limit:
|
|
||||||
break
|
|
||||||
finally:
|
finally:
|
||||||
self.is_processing = False
|
self.is_processing = False
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user