feat(config): new settings for application (port, cpu usage eth.)

This commit is contained in:
semantic-release-bot
2018-02-05 03:57:40 +03:00
parent c800124f9a
commit a87a59a828
2 changed files with 77 additions and 7 deletions

View File

@ -546,10 +546,17 @@ setInterval(() => {
if(typeof options.indexer !== 'undefined')
{
if(options.indexer)
spider.listen(config.spiderPort)
const upSpider = () => {
if(options.indexer)
spider.listen(config.spiderPort)
else
spider.close()
}
if(options.spiderPort !== config.spiderPort)
spider.close(upSpider)
else
spider.close()
upSpider()
}
for(const option in options)