Statistics at every candle
This commit is contained in:
1 parent
a88b94066f
commit
ded7998d0b
6 files changed
+219
-197
No files matched your search
+2
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user