mirror of
https://git.wownero.com/wowlet/wowlet-backend.git
synced 2024-08-15 01:03:13 +00:00
rates_crypto: sleep
This commit is contained in:
parent
154cefff7b
commit
9bcec54dfd
1 changed files with 3 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
# Copyright (c) 2020, The Monero Project.
|
||||
# Copyright (c) 2020, dsc@xmr.pm
|
||||
|
||||
import json
|
||||
import json, asyncio
|
||||
from typing import List, Union
|
||||
|
||||
import settings
|
||||
|
@ -12,7 +12,7 @@ from wowlet_backend.factory import cache
|
|||
|
||||
|
||||
class CryptoRatesTask(WowletTask):
|
||||
def __init__(self, interval: int = 360):
|
||||
def __init__(self, interval: int = 600):
|
||||
super(CryptoRatesTask, self).__init__(interval)
|
||||
|
||||
self._cache_key = "crypto_rates"
|
||||
|
@ -90,4 +90,5 @@ class CryptoRatesTask(WowletTask):
|
|||
pass
|
||||
|
||||
rates.append(obj)
|
||||
await asyncio.sleep(10)
|
||||
return rates
|
||||
|
|
Loading…
Reference in a new issue