mirror of
https://github.com/LBRYFoundation/lbry-sdk.git
synced 2025-08-27 15:31:29 +00:00
make lru_cache a power of two, following py docs
This commit is contained in:
parent
55116763e9
commit
ebc9ed01c5
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ class Resolver:
|
||||||
results = await asyncio.gather(*futs)
|
results = await asyncio.gather(*futs)
|
||||||
return dict(list(map(lambda result: list(result.items())[0], results)))
|
return dict(list(map(lambda result: list(result.items())[0], results)))
|
||||||
|
|
||||||
@lru_cache(200)
|
@lru_cache(256)
|
||||||
def _fetch_tx(self, txid):
|
def _fetch_tx(self, txid):
|
||||||
async def __fetch_parse(txid):
|
async def __fetch_parse(txid):
|
||||||
return self.transaction_class(unhexlify(await self.network.get_transaction(txid)))
|
return self.transaction_class(unhexlify(await self.network.get_transaction(txid)))
|
||||||
|
|
Loading…
Add table
Reference in a new issue