Skip to content

Commit

Permalink
remove pruner (#489)
Browse files Browse the repository at this point in the history
* remove pruner

* fix lint
  • Loading branch information
boudra authored Mar 14, 2024
1 parent c1818f0 commit 29a3e0d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import os from "node:os";
type ChainId = number;
type CoingeckoSupportedChainId = 1 | 10 | 250 | 42161 | 43114;

const CHAIN_DATA_VERSION = "48";
const CHAIN_DATA_VERSION = "49";

export type Token = {
code: string;
Expand Down
9 changes: 0 additions & 9 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ import { decodeJsonWithBigInts } from "./utils/index.js";
import { Block } from "chainsauce/dist/cache.js";
import { createPublicClient, http } from "viem";
import { IndexerEvents } from "chainsauce/dist/indexer.js";
import { ContractSubscriptionPruner } from "./contractSubscriptionPruner.js";

const RESOURCE_MONITOR_INTERVAL_MS = 1 * 60 * 1000; // every minute

Expand Down Expand Up @@ -554,14 +553,6 @@ async function catchupAndWatchChain(
});

indexer.watch();

const contractSubscriptionPruner = new ContractSubscriptionPruner({
client: rpcClient,
logger: chainLogger,
indexer,
});

contractSubscriptionPruner.start();
}

return db;
Expand Down

0 comments on commit 29a3e0d

Please sign in to comment.