increase cache

This commit is contained in:
Robert Resch 2022-08-24 21:52:27 +02:00
parent fbeca06694
commit 03c3f4a4df

View file

@ -44,7 +44,7 @@ class ProxyClient:
timeout: float = 180, timeout: float = 180,
): ):
self.request_mapper: MutableMapping[str, str] = TTLCache( self.request_mapper: MutableMapping[str, str] = TTLCache(
maxsize=timeout * 60, ttl=timeout * 1.1 maxsize=timeout * timeout, ttl=timeout * 1.1
) )
self._client = _NoCertVerifyClient(client_id=client_id, config=config) self._client = _NoCertVerifyClient(client_id=client_id, config=config)
self._host = host self._host = host