mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-06-18 05:00:03 +02:00
cmd/antelope-api-healtcheck/main.go: Change default timeout to 2 seconds.
This commit is contained in:
parent
8deb0b9bf3
commit
4b15a56804
1 changed files with 3 additions and 2 deletions
|
|
@ -138,8 +138,9 @@ func main() {
|
|||
var version bool
|
||||
var usage bool
|
||||
var logFormatter *string
|
||||
// Set default timeout to 30 sec. Should be "enough" for most cases.
|
||||
req_timeout := time.Second * 30
|
||||
// Set default timeout to 2 sec
|
||||
// as haproxy "inter" parameter to healthcheck is set to 2s per default.
|
||||
req_timeout := time.Second * 2
|
||||
|
||||
logger = log.Root()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue