Skip to content

Commit

Permalink
Merge pull request #220 from hypercerts-org/fix/pollin_interval
Browse files Browse the repository at this point in the history
fix: 5s polling testnet, 2.5s polling prd
  • Loading branch information
bitbeckers authored Sep 30, 2024
2 parents 85fc857 + d7ee29f commit 6d9253b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/indexer/chainsauce.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ import SchemaRegistryAbi from "@/abis/schemaRegistry.js";
import HypercertMinterAbi from "@/abis/hypercertMinter.js";
import HypercertExchangeAbi from "@/abis/hypercertExchange.js";
import { processEvent } from "@/indexer/eventHandlers.js";
import { localCachingDbUrl } from "@/utils/constants.js";
import {
Environment,
environment,
localCachingDbUrl,
} from "@/utils/constants.js";
import { getContractEventsForChain } from "@/storage/getContractEventsForChain.js";
import EasAbi from "@/abis/eas.js";
import { getSupportedSchemas } from "@/storage/getSupportedSchemas.js";
Expand Down Expand Up @@ -58,6 +62,7 @@ export const getIndexer = async ({
id: chainId,
maxBlockRange: 100000n,
rpcClient: createHttpRpcClient({ url: rpcUrl }),
pollingInterval: environment === Environment.TEST ? 5000 : 2500,
},
contracts: MyContracts,
context: {
Expand Down

0 comments on commit 6d9253b

Please sign in to comment.