Statistics at every candle

This commit is contained in:
Luis Fernando Molina committed 2020-08-17 13:32:52 +02:00
1 parent a88b94066f
commit ded7998d0b
6 files changed
+219 -197

No files matched your search

+2 -2
View File
@@ -4,7 +4,7 @@ const path = require('path')
exports.newFileStorage = function newFileStorage(logger, host, port) {
const MODULE_NAME = 'FileStorage'
const MAX_RETRY = 30
const MAX_RETRY = 10
const FAST_RETRY_TIME_IN_MILISECONDS = 500
const SLOW_RETRY_TIME_IN_MILISECONDS = 2000
@@ -160,7 +160,7 @@ exports.newFileStorage = function newFileStorage(logger, host, port) {
}
function retry() {
console.log(new Date(), ' Retry #: ' + currentRetryGetTextFile, fileLocation)
console.log(new Date(), 'Read File Retry #: ' + currentRetryGetTextFile, fileLocation)
if (currentRetryGetTextFile < MAX_RETRY) {
currentRetryGetTextFile++
logger.write(MODULE_NAME, '[WARN] FileStorage -> getTextFile -> retry -> Will try to read the file again -> Retry #: ' + currentRetryGetTextFile)