Moving back if statement moved during testing, setting InvalidDate at right point
This commit is contained in:
1 parent
0b9af11663
commit
d052098b66
1 file changed
+5
-4
@@ -93,6 +93,9 @@
|
||||
if (API.rateLimit !== undefined) {
|
||||
rateLimit = API.rateLimit
|
||||
}
|
||||
if (API.limit !== undefined) {
|
||||
limit = API.limit
|
||||
}
|
||||
if (API.hostname !== undefined) {
|
||||
hostname = API.hostname
|
||||
}
|
||||
@@ -106,9 +109,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
if (API.limit !== undefined) {
|
||||
limit = API.limit
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -342,12 +342,13 @@
|
||||
let lastOHLCVKey = ''
|
||||
let params = undefined
|
||||
let previousSince
|
||||
let invalidDate = false
|
||||
let fromDate = new Date(since)
|
||||
let lastDate = new Date()
|
||||
|
||||
while (true) {
|
||||
|
||||
let invalidDate = false
|
||||
|
||||
/* Reporting we are doing well */
|
||||
function heartBeat(noNewInternalLoop) {
|
||||
let processingDate = new Date(since)
|
||||
|
||||
Reference in new issue
Block a user