@@ -27,7 +27,7 @@ class Client:
2727 The API Key that you can get from https://brawlapi.cf/dashboard
2828 session: Optional[Session] = None
2929 Use a current session or a make new one. Can be ``aiohttp.ClientSession()`` or ``requests.Session()``
30- timeout: Optional[int] = 10
30+ timeout: Optional[int] = 30
3131 A timeout in seconds for requests to the API.
3232 is_async: Optional[bool] = False
3333 Setting this to ``True`` makes the client async.
@@ -49,7 +49,7 @@ class Client:
4949
5050 REQUEST_LOG = '{method} {url} recieved {text} has returned {status}'
5151
52- def __init__ (self , token , session = None , timeout = 10 , is_async = False , ** options ):
52+ def __init__ (self , token , session = None , timeout = 30 , is_async = False , ** options ):
5353 self .is_async = is_async
5454 self .loop = options .get ('loop' , asyncio .get_event_loop ())
5555 self .connector = options .get ('connector' )
@@ -62,7 +62,7 @@ def __init__(self, token, session=None, timeout=10, is_async=False, **options):
6262 self .api = API (options .get ('base_url' ))
6363
6464 self .debug = options .get ('debug' , False )
65- self .cache = TTLCache (900 , 180 ) # 5 requests/sec
65+ self .cache = TTLCache (540 , 180 ) # 3 requests/sec
6666 self .ratelimit = [3 , 3 , 0 ] # per second, remaining, time until reset
6767
6868 self .headers = {
0 commit comments