throttle instead of disconnecting

This commit is contained in:
Victor Shyba 2021-08-06 16:51:21 -03:00 committed by Victor Shyba
parent 43989122bb
commit 19b17374e8

View file

@ -1030,7 +1030,7 @@ class LBRYElectrumX(SessionBase):
try: try:
return await self.run_and_cache_query('search', kwargs) return await self.run_and_cache_query('search', kwargs)
except TooManyClaimSearchParametersError as err: except TooManyClaimSearchParametersError as err:
self.loop.call_later(0, self.synchronous_close) await asyncio.sleep(2)
return RPCError(1, str(err)) return RPCError(1, str(err))
async def claimtrie_resolve(self, *urls): async def claimtrie_resolve(self, *urls):