mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-09 08:14:50 +00:00
Fix update_worker not being async
This commit is contained in:
parent
14feffce84
commit
301ba799cf
1 changed files with 2 additions and 2 deletions
|
|
@ -108,9 +108,9 @@ class Dispatcher:
|
||||||
|
|
||||||
self.groups[group].remove(handler)
|
self.groups[group].remove(handler)
|
||||||
|
|
||||||
def update_worker(self):
|
async def update_worker(self):
|
||||||
while True:
|
while True:
|
||||||
update = self.updates.get()
|
update = await self.updates.get()
|
||||||
|
|
||||||
if update is None:
|
if update is None:
|
||||||
break
|
break
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue