progress in removing core
parent
ac70966c41
commit
c6badab18e
|
@ -55,10 +55,10 @@ class PrivateAPI:
|
||||||
self.host = httpapi.apiutils.setbindip.set_bind_IP(filepaths.private_API_host_file)
|
self.host = httpapi.apiutils.setbindip.set_bind_IP(filepaths.private_API_host_file)
|
||||||
logger.info('Running api on %s:%s' % (self.host, self.bindPort))
|
logger.info('Running api on %s:%s' % (self.host, self.bindPort))
|
||||||
self.httpServer = ''
|
self.httpServer = ''
|
||||||
|
onionrInst.setClientAPIInst(self)
|
||||||
|
|
||||||
self.queueResponse = {}
|
self.queueResponse = {}
|
||||||
self.get_block_data = httpapi.apiutils.GetBlockData(self)
|
self.get_block_data = httpapi.apiutils.GetBlockData(self)
|
||||||
onionrInst.setClientAPIInst(self)
|
|
||||||
register_private_blueprints.register_private_blueprints(self, app)
|
register_private_blueprints.register_private_blueprints(self, app)
|
||||||
httpapi.load_plugin_blueprints(app)
|
httpapi.load_plugin_blueprints(app)
|
||||||
self.onionrInst = onionrInst
|
self.onionrInst = onionrInst
|
||||||
|
|
|
@ -51,7 +51,8 @@ class OnionrCommunicatorTimers:
|
||||||
if self.makeThread:
|
if self.makeThread:
|
||||||
for i in range(self.threadAmount):
|
for i in range(self.threadAmount):
|
||||||
if self.daemonInstance.threadCounts[self.timerFunction.__name__] >= self.maxThreads:
|
if self.daemonInstance.threadCounts[self.timerFunction.__name__] >= self.maxThreads:
|
||||||
logger.debug('%s is currently using the maximum number of threads, not starting another.' % self.timerFunction.__name__, terminal=True)
|
pass
|
||||||
|
#logger.debug('%s is currently using the maximum number of threads, not starting another.' % self.timerFunction.__name__, terminal=True)
|
||||||
else:
|
else:
|
||||||
self.daemonInstance.threadCounts[self.timerFunction.__name__] += 1
|
self.daemonInstance.threadCounts[self.timerFunction.__name__] += 1
|
||||||
newThread = threading.Thread(target=self.timerFunction, args=self.args, daemon=True)
|
newThread = threading.Thread(target=self.timerFunction, args=self.args, daemon=True)
|
||||||
|
|
Loading…
Reference in New Issue