Skip to content

Commit

Permalink
fixup! cmd,common,discovery: Disable webhook caching for Stream Tester
Browse files Browse the repository at this point in the history
  • Loading branch information
leszko committed May 20, 2022
1 parent b6babf6 commit d9835b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/livepeer/livepeer.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func updateNilsForUnsetFlags(cfg starter.LivepeerConfig) starter.LivepeerConfig
// streamTesterMode extends transcoding timeouts and disable caching for the testing purpose.
// This functionality is intended for Stream Tester to avoid timing out while measuring orchestrator performance.
func streamTesterMode() {
if boolVal, _ := strconv.ParseBool(os.Getenv("LP_STREAM_TESTER_MODE")); boolVal {
if boolVal, _ := strconv.ParseBool(os.Getenv("LP_IS_ORCH_TESTER")); boolVal {
// Make all timeouts 8s for the common segment durations
common.SegUploadTimeoutMultiplier = 4.0
common.SegmentUploadTimeout = 8 * time.Second
Expand Down

0 comments on commit d9835b6

Please sign in to comment.