Skip to content

fix(indexer): timeout time unit - #1363

Open
aelmanaa wants to merge 1 commit into
mainfrom
fix/indexer-timeout-unit
Open

fix(indexer): timeout time unit#1363
aelmanaa wants to merge 1 commit into
mainfrom
fix/indexer-timeout-unit

Conversation

@aelmanaa

Copy link
Copy Markdown
Contributor

This pull request makes a small but important change to how NTP timeouts are handled in the createDiscovery function. The timeout duration for the NTP provider is now interpreted in milliseconds instead of seconds, which allows for finer-grained timeout configuration.

  • Changed the construction of the BackoffNTPProvider in indexer/cmd/main.go to use milliseconds (instead of seconds) for the timeout duration.

@aelmanaa
aelmanaa requested a review from a team as a code owner August 19, 2026 18:31
Copilot AI lite review requested due to automatic review settings August 19, 2026 18:31
@github-actions

Copy link
Copy Markdown

👋 aelmanaa, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aligns the NTP provider configuration in the indexer’s discovery setup with the documented semantics of DiscoveryConfig.Timeout by treating it as milliseconds (rather than seconds) when constructing the BackoffNTPProvider.

Changes:

  • Update createDiscovery to pass discCfg.Timeout to NewBackoffNTPProvider as time.Millisecond-based duration (instead of time.Second).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

Copy link
Copy Markdown

Code coverage report:

Package main fix/indexer-timeout-unit Diff
github.com/smartcontractkit/chainlink-ccv/aggregator 50.83% 50.86% +0.03%
github.com/smartcontractkit/chainlink-ccv/bootstrap 70.72% 70.72% +0.00%
github.com/smartcontractkit/chainlink-ccv/cli 59.12% 59.12% +0.00%
github.com/smartcontractkit/chainlink-ccv/cmd 36.93% 36.93% +0.00%
github.com/smartcontractkit/chainlink-ccv/common 46.51% 46.67% +0.16%
github.com/smartcontractkit/chainlink-ccv/executor 42.80% 42.80% +0.00%
github.com/smartcontractkit/chainlink-ccv/indexer 35.55% 35.55% +0.00%
github.com/smartcontractkit/chainlink-ccv/integration 56.56% 56.56% +0.00%
github.com/smartcontractkit/chainlink-ccv/internal 0.00% 0.00% +0.00%
github.com/smartcontractkit/chainlink-ccv/migration 77.66% 77.66% +0.00%
github.com/smartcontractkit/chainlink-ccv/pkg 100.00% 100.00% +0.00%
github.com/smartcontractkit/chainlink-ccv/pricer 0.00% 0.00% +0.00%
github.com/smartcontractkit/chainlink-ccv/protocol 63.06% 63.06% +0.00%
github.com/smartcontractkit/chainlink-ccv/tools 43.61% 43.61% +0.00%
github.com/smartcontractkit/chainlink-ccv/verifier 34.37% 34.36% -0.01%
Total 48.90% 49.00% +0.10%

@makramkd makramkd changed the title Fix indexer timeout time unit fix(indexer): timeout time unit Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants