1
0
Fork 0
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:
Henrik Hautakoski 2023-02-14 09:10:56 +01:00
parent 8deb0b9bf3
commit 4b15a56804
No known key found for this signature in database
GPG key ID: 217490840C18A5D9

View file

@ -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()