Skip to content

Commit

Permalink
Enable TentacleUseRecommendedTimeoutsAndLimits by default
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeButters committed Dec 4, 2023
1 parent 4c5f233 commit 055da1f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ protected override void Load(ContainerBuilder builder)
tcpKeepAliveEnabled = true;
}

bool.TryParse(Environment.GetEnvironmentVariable(EnvironmentVariables.TentacleUseRecommendedTimeoutsAndLimits), out var useRecommendedTimeoutsAndLimits);
if (!bool.TryParse(Environment.GetEnvironmentVariable(EnvironmentVariables.TentacleUseRecommendedTimeoutsAndLimits), out var useRecommendedTimeoutsAndLimits))
{
// Default to enabled if the environment variable is not provided
useRecommendedTimeoutsAndLimits = true;
}

var halibutTimeoutsAndLimits = useRecommendedTimeoutsAndLimits
? HalibutTimeoutsAndLimits.RecommendedValues()
Expand Down

0 comments on commit 055da1f

Please sign in to comment.