From 8c632a1ced7b3956343db390e473f3453dbc4960 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Leszko?= Date: Wed, 18 May 2022 10:35:07 +0200 Subject: [PATCH] Update cmd/livepeer/livepeer.go Co-authored-by: Victor Elias --- cmd/livepeer/livepeer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/livepeer/livepeer.go b/cmd/livepeer/livepeer.go index 7802939d88..e5076ea9de 100644 --- a/cmd/livepeer/livepeer.go +++ b/cmd/livepeer/livepeer.go @@ -1504,7 +1504,7 @@ func checkOrStoreChainID(dbh *common.DB, chainID *big.Int) error { // extendTimeouts extends transcoding timeouts for the testing purpose. // This functionality is intended for Stream Tester to avoid timing out while measuring orchestrator performance. func extendTimeouts() { - if os.Getenv("LP_EXTEND_TIMEOUTS") == "true" { + if boolVal, _ := strconv.ParseBool(os.Getenv("LP_EXTEND_TIMEOUTS")); boolVal { // Make all timeouts 8s for the common segment durations common.SegUploadTimeoutMultiplier = 4.0 common.SegmentUploadTimeout = 8 * time.Second