From 6d8975fd2fba020246ed701ce91f71c4f3144040 Mon Sep 17 00:00:00 2001 From: Ford Date: Thu, 14 Nov 2024 10:36:50 -0800 Subject: [PATCH] agent: Fix polling-interval arg setting - It was only being set properly in single-network mode because it wasn't in common-options --- packages/indexer-agent/src/commands/common-options.ts | 7 +++++++ packages/indexer-agent/src/commands/start.ts | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/indexer-agent/src/commands/common-options.ts b/packages/indexer-agent/src/commands/common-options.ts index 691c2ec22..0ed8e67c7 100644 --- a/packages/indexer-agent/src/commands/common-options.ts +++ b/packages/indexer-agent/src/commands/common-options.ts @@ -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', diff --git a/packages/indexer-agent/src/commands/start.ts b/packages/indexer-agent/src/commands/start.ts index daa5f004a..3dc90e9e3 100644 --- a/packages/indexer-agent/src/commands/start.ts +++ b/packages/indexer-agent/src/commands/start.ts @@ -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',