connector

This commit is contained in:
4tochka 2019-05-05 11:35:34 +04:00
parent c83cc5173f
commit edc513d87d

View File

@ -717,7 +717,8 @@ class Connector:
except:
pass
if self.block_preload._store_size < self.block_preload_cache_limit * 0.9:
continue
if self.block_preload._store and self.last_block_height >= next(iter(self.block_preload._store)):
continue
await asyncio.sleep(1)
# remove unused items