Skip to content

Commit

Permalink
agent: Fix polling-interval arg setting
Browse files Browse the repository at this point in the history
- It was only being set properly in single-network mode because it
wasn't in common-options
  • Loading branch information
fordN committed Nov 14, 2024
1 parent ade405e commit 5dd45c6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 7 additions & 0 deletions packages/indexer-agent/src/commands/common-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ export function injectCommonStartupOptions(argv: Argv): Argv {
default: 'debug',
group: 'Indexer Infrastructure',
})
.option('polling-interval', {
description: 'Polling interval for data collection',
type: 'number',
required: false,
default: 120_000,
group: 'Indexer Infrastructure',
})
.option('offchain-subgraphs', {
description: 'Subgraphs to index that are not on chain (comma-separated)',
type: 'string',
Expand Down
7 changes: 0 additions & 7 deletions packages/indexer-agent/src/commands/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,13 +299,6 @@ export const start = {
default: 'auto',
group: 'Indexer Infrastructure',
})
.option('polling-interval', {
description: 'Polling interval for data collection',
type: 'number',
required: false,
default: 120_000,
group: 'Indexer Infrastructure',
})
.option('auto-allocation-min-batch-size', {
description: `Minimum number of allocation transactions inside a batch for auto allocation management. No obvious upperbound, with default of 1`,
type: 'number',
Expand Down

0 comments on commit 5dd45c6

Please sign in to comment.