mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 00:54:47 -04:00
Minor PR comment tweaks.
This commit is contained in:
parent
f9232c7917
commit
835e01fc70
5 changed files with 19 additions and 13 deletions
|
@ -86,7 +86,7 @@ class AppServiceScheduler(object):
|
|||
self.txn_ctrl.start_polling()
|
||||
|
||||
def submit_event_for_as(self, service, event):
|
||||
self.event_grouper.on_receive(service, event)
|
||||
self.event_grouper.enqueue(service, event)
|
||||
|
||||
|
||||
class _EventGrouper(object):
|
||||
|
@ -96,7 +96,7 @@ class _EventGrouper(object):
|
|||
def __init__(self):
|
||||
self.groups = {} # dict of {service: [events]}
|
||||
|
||||
def on_receive(self, service, event):
|
||||
def enqueue(self, service, event):
|
||||
if service not in self.groups:
|
||||
self.groups[service] = []
|
||||
self.groups[service].append(event)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue