Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase default connection timeout #152

Merged
merged 3 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/neo-exporter/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@

func DefaultConfiguration(cfg *viper.Viper) {
cfg.SetDefault(prefix+delimiter+cfgNeoRPCEndpoint, "")
cfg.SetDefault(prefix+delimiter+cfgNeoRPCDialTimeout, 5*time.Second)
cfg.SetDefault(prefix+delimiter+cfgNeoRPCDialTimeout, time.Minute)

Check warning on line 36 in cmd/neo-exporter/config.go

View check run for this annotation

Codecov / codecov/patch

cmd/neo-exporter/config.go#L36

Added line #L36 was not covered by tests
roman-khimov marked this conversation as resolved.
Show resolved Hide resolved

cfg.SetDefault(cfgMetricsEndpoint, ":16512")
cfg.SetDefault(cfgMetricsInterval, 15*time.Minute)
cfg.SetDefault(cfgMetricsInterval, 15*time.Second)

Check warning on line 39 in cmd/neo-exporter/config.go

View check run for this annotation

Codecov / codecov/patch

cmd/neo-exporter/config.go#L39

Added line #L39 was not covered by tests

cfg.SetDefault(cfgLoggerLevel, "info")
}
Expand Down
2 changes: 1 addition & 1 deletion config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ chain:
# If true, monitor connects to the NeoFS chain, otherwise, to the Neo chain.
fschain: false
rpc:
dial_timeout: 5s
dial_timeout: 60s
# stores the interval after which a current connection health check is performed.
health_recheck_interval: 5s
endpoint:
Expand Down
Loading