improve subscription performance

This commit is contained in:
Jack Robison 2021-01-18 14:34:14 -05:00
parent 519614b2fd
commit a4ec430ac0
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -1271,7 +1271,7 @@ class LBRYElectrumX(SessionBase):
hashXes = [
(self.address_to_hashX(address), address) for address in addresses
]
return await asyncio.gather(*(self.hashX_subscribe(*args) for args in hashXes))
return [await self.hashX_subscribe(*args) for args in hashXes]
async def address_unsubscribe(self, address):
"""Unsubscribe an address.