forked from LBRYCommunity/lbry-sdk
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)
|
||||
return dict(list(map(lambda result: list(result.items())[0], results)))
|
||||
|
||||
@lru_cache(200)
|
||||
@lru_cache(256)
|
||||
def _fetch_tx(self, txid):
|
||||
async def __fetch_parse(txid):
|
||||
return self.transaction_class(unhexlify(await self.network.get_transaction(txid)))
|
||||
|
|
Loading…
Reference in a new issue