Skip to content

Commit

Permalink
Merge pull request #152 from nspcc-dev/147-default-timeouts-are-extre…
Browse files Browse the repository at this point in the history
…mely-aggressive

Increase default connection timeout
  • Loading branch information
roman-khimov authored Aug 30, 2024
2 parents 6631bb9 + 34afd00 commit 06b2a07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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 @@ const (

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)

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

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

0 comments on commit 06b2a07

Please sign in to comment.