Skip to content

Commit 6d8975f

Browse files
committed
agent: Fix polling-interval arg setting
- It was only being set properly in single-network mode because it wasn't in common-options
1 parent 2130e1d commit 6d8975f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

packages/indexer-agent/src/commands/common-options.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ export function injectCommonStartupOptions(argv: Argv): Argv {
3535
default: 'debug',
3636
group: 'Indexer Infrastructure',
3737
})
38+
.option('polling-interval', {
39+
description: 'Polling interval for data collection',
40+
type: 'number',
41+
required: false,
42+
default: 120_000,
43+
group: 'Indexer Infrastructure',
44+
})
3845
.option('offchain-subgraphs', {
3946
description: 'Subgraphs to index that are not on chain (comma-separated)',
4047
type: 'string',

packages/indexer-agent/src/commands/start.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -299,13 +299,6 @@ export const start = {
299299
default: 'auto',
300300
group: 'Indexer Infrastructure',
301301
})
302-
.option('polling-interval', {
303-
description: 'Polling interval for data collection',
304-
type: 'number',
305-
required: false,
306-
default: 120_000,
307-
group: 'Indexer Infrastructure',
308-
})
309302
.option('auto-allocation-min-batch-size', {
310303
description: `Minimum number of allocation transactions inside a batch for auto allocation management. No obvious upperbound, with default of 1`,
311304
type: 'number',

0 commit comments

Comments
 (0)