mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-01-12 16:53:02 +08:00
fix broken adapters
This commit is contained in:
4
test.js
4
test.js
@@ -425,8 +425,8 @@ setTimeout(() => {
|
||||
|
||||
async function initCache() {
|
||||
let currentCache = await sdk.cache.readCache(INTERNAL_CACHE_FILE)
|
||||
if (process.env.NO_EXIT_ON_LONG_RUN_RPC)
|
||||
sdk.log('cache size:', JSON.stringify(currentCache).length, 'chains:', Object.keys(currentCache).length)
|
||||
// if (process.env.NO_EXIT_ON_LONG_RUN_RPC)
|
||||
// sdk.log('cache size:', JSON.stringify(currentCache).length, 'chains:', Object.keys(currentCache).length)
|
||||
const ONE_WEEK = 60 * 60 * 24 * 31
|
||||
if (!currentCache || !currentCache.startTime || (Date.now() / 1000 - currentCache.startTime > ONE_WEEK)) {
|
||||
currentCache = {
|
||||
|
||||
Reference in New Issue
Block a user