rates_crypto: sleep

This commit is contained in:
dsc 2024-03-30 09:53:23 +02:00
parent 154cefff7b
commit 9bcec54dfd
1 changed files with 3 additions and 2 deletions

View File

@ -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