Skip to content

Commit

Permalink
Merge pull request #6 from vegaprotocol/increase-timeframe-for-block-…
Browse files Browse the repository at this point in the history
…duration-check

feat: incrase time duration for block incraese check
  • Loading branch information
daniel1302 authored May 29, 2024
2 parents 49bdd56 + 7677b7f commit f0caf7c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/blockexplorer.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func runExplorerHealthCheck(vegaHTTPPort int, coreEndpoint, dataNodeAPIEndpoint,
healthChecks := []checks.HealthCheckFunc{
checks.CheckVegaHttpOnlineWrapper(coreEndpoint),
checks.CompareVegaAndCurrentTime(coreEndpoint),
checks.CheckVegaBlockIncreasedWrapper(coreEndpoint, 3*time.Second),
checks.CheckVegaBlockIncreasedWrapper(coreEndpoint, 30*time.Second),
checks.CheckExplorerIsOnlineWrapper(explorerEndpoint),
checks.CheckExplorerTransactionListIsNotEmptyWrapper(explorerEndpoint),
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/datanode.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func runDataNodeHealthCheck(vegaHTTPPort int, coreEndpoint, dataNodeAPIEndpoint
checks.CheckVegaHttpOnlineWrapper(coreEndpoint),
checks.CompareVegaAndCurrentTime(coreEndpoint),
checks.CheckDataNodeHttpOnlineWrapper(dataNodeAPIEndpoint),
checks.CheckVegaBlockIncreasedWrapper(coreEndpoint, 3*time.Second),
checks.CheckVegaBlockIncreasedWrapper(coreEndpoint, 30*time.Second),
checks.CheckDataNodeLagWrapper(dataNodeAPIEndpoint),
})
healthCheckServer.Start(ctx)
Expand Down
2 changes: 1 addition & 1 deletion cmd/vega.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func runVegaHealthCheck(vegaHTTPPort int, coreEndpoint string) error {
healthCheckServer := checks.NewHealthCheckServer(vegaHTTPPort, []checks.HealthCheckFunc{
checks.CheckVegaHttpOnlineWrapper(coreEndpoint),
checks.CompareVegaAndCurrentTime(coreEndpoint),
checks.CheckVegaBlockIncreasedWrapper(coreEndpoint, 3*time.Second),
checks.CheckVegaBlockIncreasedWrapper(coreEndpoint, 30*time.Second),
})
healthCheckServer.Start(ctx)

Expand Down

0 comments on commit f0caf7c

Please sign in to comment.