Skip to content

Commit 7fb3d12

Browse files
committed
Add caching log for runAdapter
1 parent 3fedc47 commit 7fb3d12

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

adapters/utils/runAdapter.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { getBlock } from "../../helpers/getBlock";
44
import { getUniqStartOfTodayTimestamp } from '../../helpers/getUniSubgraphFees';
55
import * as _env from '../../helpers/env'
66
import { getDateString } from '../../helpers/utils';
7+
import * as sdk from '@defillama/sdk'
78

89
// to trigger inclusion of the env.ts file
910
const _include_env = _env.getEnv('BITLAYER_RPC')
@@ -91,6 +92,7 @@ export default async function runAdapter(options: AdapterRunOptions) {
9192
const runKey = getRunKey(options)
9293

9394
if (!adapterRunResponseCache[runKey]) adapterRunResponseCache[runKey] = _runAdapter(options)
95+
else sdk.log(`[Dimensions run] Using cached results for ${runKey}`)
9496
return adapterRunResponseCache[runKey]
9597
}
9698

aggregators/gluex-protocol/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ const adapter: SimpleAdapter = {
128128
adapter: {},
129129
start: '2025-03-14',
130130
fetch,
131-
chains: Object.keys({ ...ROUTERS_OLD, ...ROUTERS_NEW })
131+
chains: Object.keys({ ...ROUTERS_OLD, ...ROUTERS_NEW }),
132+
methodology,
132133
};
133134

134135
export default adapter;

0 commit comments

Comments
 (0)