File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
19
19
- Handle 'a' vs 'an' in drinks plugin
20
20
- Apply rate limiting to regex hooks
21
21
- Ensure event order is deterministic
22
+ - Make event queueing happen non-async
22
23
### Fixed
23
24
- Ensure event order is deterministic
24
25
- Fix matching exception in horoscope test
Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ def load_clients(self):
307
307
scanner = Scanner (bot = self )
308
308
scanner .scan (clients , categories = ["cloudbot.client" ])
309
309
310
- async def process (self , event ):
310
+ def process (self , event ):
311
311
"""
312
312
:type event: Event
313
313
"""
@@ -418,8 +418,5 @@ def add_hook(hook, _event):
418
418
419
419
tasks .sort (key = lambda t : t [0 ].priority )
420
420
421
- # Run the tasks
422
- await asyncio .gather (* [
423
- asyncio .ensure_future (self .plugin_manager .launch (hook , _event ))
424
- for hook , _event in tasks
425
- ], loop = self .loop )
421
+ for _hook , _event in tasks :
422
+ async_util .wrap_future (self .plugin_manager .launch (_hook , _event ))
Original file line number Diff line number Diff line change @@ -525,8 +525,8 @@ def data_received(self, data):
525
525
self .conn .describe_server (),
526
526
)
527
527
else :
528
- # handle the message, async
529
- async_util . wrap_future ( self .bot .process (event ), loop = self . loop )
528
+ # handle the message
529
+ self .bot .process (event )
530
530
531
531
def parse_line (self , line : str ) -> Event :
532
532
message = Message .parse (line )
You can’t perform that action at this time.
0 commit comments