refactor: rename failed QR scans' GC function
This commit is contained in:
parent
2d91c55539
commit
806a2716f0
1 changed files with 2 additions and 2 deletions
|
|
@ -132,7 +132,7 @@ function updateCoinAtmRadar () {
|
|||
.then(rates => coinAtmRadar.update(rates, settings()))
|
||||
}
|
||||
|
||||
const cleanOldFailedScans = () => {
|
||||
const cleanOldFailedQRScans = () => {
|
||||
const old = new Date()
|
||||
old.setDate(old.getDate() - 2) // 2 days ago
|
||||
const isOld = filepath => {
|
||||
|
|
@ -233,7 +233,7 @@ function doPolling (schema) {
|
|||
addToQueue(updateAndLoadSanctions, SANCTIONS_UPDATE_INTERVAL, schema, QUEUE.SLOW)
|
||||
addToQueue(updateCoinAtmRadar, RADAR_UPDATE_INTERVAL, schema, QUEUE.SLOW)
|
||||
addToQueue(pi().pruneMachinesHeartbeat, PRUNE_MACHINES_HEARTBEAT, schema, QUEUE.SLOW, settings)
|
||||
addToQueue(cleanOldFailedScans, FAILED_SCANS_INTERVAL, schema, QUEUE.SLOW, settings)
|
||||
addToQueue(cleanOldFailedQRScans, FAILED_SCANS_INTERVAL, schema, QUEUE.SLOW, settings)
|
||||
}
|
||||
|
||||
function setup (schemasToAdd = [], schemasToRemove = []) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue