mirror of
https://github.com/Retropex/mempool.git
synced 2025-05-12 18:20:41 +02:00
fix pool update retry delay
This commit is contained in:
parent
4d8a68156d
commit
1c9b422db4
@ -98,7 +98,8 @@ class PoolsUpdater {
|
||||
logger.info(`Mining pools-v2.json (${githubSha}) import completed`, this.tag);
|
||||
|
||||
} catch (e) {
|
||||
this.lastRun = now - 600; // Try again in 10 minutes
|
||||
// fast-forward lastRun to 10 minutes before the next scheduled update
|
||||
this.lastRun = now - (config.MEMPOOL.POOLS_UPDATE_DELAY - 600);
|
||||
logger.err(`PoolsUpdater failed. Will try again in 10 minutes. Exception: ${JSON.stringify(e)}`, this.tag);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user