mirror of https://gitlab.com/litecord/litecord.git
user.billing_job: fix unwanted await due to spawn() being non-coro
This commit is contained in:
parent
041791b733
commit
1cef25ffc4
|
|
@ -26,7 +26,7 @@ THRESHOLDS = {
|
|||
async def _resched(app):
|
||||
log.debug('waiting 2 minutes for job.')
|
||||
await sleep(120)
|
||||
await app.sched.spawn(payment_job(app))
|
||||
app.sched.spawn(payment_job(app))
|
||||
|
||||
|
||||
async def _process_user_payments(app, user_id: int):
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ class JobManager:
|
|||
task = self.loop.create_task(
|
||||
self._wrapper(coro)
|
||||
)
|
||||
|
||||
self.jobs.append(task)
|
||||
|
||||
def close(self):
|
||||
|
|
|
|||
Loading…
Reference in New Issue