connector
This commit is contained in:
parent
71aec8d088
commit
0f6954dc01
@ -16,7 +16,7 @@ from _lru import LRU
|
||||
|
||||
|
||||
class BlockLoader:
|
||||
def __init__(self, parent, workers=10):
|
||||
def __init__(self, parent, workers=8):
|
||||
self.worker_limit = workers
|
||||
self.worker = dict()
|
||||
self.worker_tasks = list()
|
||||
@ -71,7 +71,7 @@ class BlockLoader:
|
||||
if self.last_batch_size < 8000000:
|
||||
self.rpc_batch_limit += 10
|
||||
elif self.last_batch_size > 50000000 and self.rpc_batch_limit > 10:
|
||||
self.rpc_batch_limit = 50
|
||||
self.rpc_batch_limit = 80
|
||||
if self.last_batch_size > 400:
|
||||
self.last_batch_size = 400
|
||||
for i in self.worker_busy:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user