Skip to content

Commit

Permalink
Remove orderbook cache roundtable job (backport #2510) (#2511)
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Fraser <[email protected]>
  • Loading branch information
mergify[bot] and adamfraser authored Oct 17, 2024
1 parent 3339df5 commit e2298c4
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 148 deletions.

This file was deleted.

1 change: 0 additions & 1 deletion indexer/services/roundtable/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ export const configSchema = {
LOOPS_ENABLED_UPDATE_WALLET_TOTAL_VOLUME: parseBoolean({ default: true }),
LOOPS_ENABLED_UPDATE_AFFILIATE_INFO: parseBoolean({ default: true }),
LOOPS_ENABLED_DELETE_OLD_FIREBASE_NOTIFICATION_TOKENS: parseBoolean({ default: true }),
LOOPS_ENABLED_CACHE_ORDERBOOK_MID_PRICES: parseBoolean({ default: true }),

// Loop Timing
LOOPS_INTERVAL_MS_MARKET_UPDATER: parseInteger({
Expand Down
9 changes: 0 additions & 9 deletions indexer/services/roundtable/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
connect as connectToRedis,
} from './helpers/redis';
import aggregateTradingRewardsTasks from './tasks/aggregate-trading-rewards';
import cacheOrderbookMidPrices from './tasks/cache-orderbook-mid-prices';
import cancelStaleOrdersTask from './tasks/cancel-stale-orders';
import createLeaderboardTask from './tasks/create-leaderboard';
import createPnlTicksTask from './tasks/create-pnl-ticks';
Expand Down Expand Up @@ -273,14 +272,6 @@ async function start(): Promise<void> {
);
}

if (config.LOOPS_ENABLED_CACHE_ORDERBOOK_MID_PRICES) {
startLoop(
cacheOrderbookMidPrices,
'cache_orderbook_mid_prices',
config.LOOPS_INTERVAL_MS_CACHE_ORDERBOOK_MID_PRICES,
);
}

logger.info({
at: 'index',
message: 'Successfully started',
Expand Down

This file was deleted.

0 comments on commit e2298c4

Please sign in to comment.