Separate config argument for workers
This commit is contained in:
parent
bad2a79f05
commit
fe7a53fb8a
2 changed files with 3 additions and 2 deletions
|
@ -126,9 +126,9 @@ class WorkerManager(object):
|
|||
|
||||
def getMaxWorkers(self):
|
||||
if len(self.tasks) > 100:
|
||||
return config.connected_limit * 3
|
||||
return config.workers * 3
|
||||
else:
|
||||
return config.connected_limit
|
||||
return config.workers
|
||||
|
||||
# Add new worker
|
||||
def addWorker(self, peer):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue