Skip to content

Commit

Permalink
remove unecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
dmehala committed Jan 9, 2024
1 parent c6376c8 commit 99c1c65
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/datadog/datadog_agent_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,6 @@ Expected<FinalizedDatadogAgentConfig> finalize_config(
"milliseconds."};
}

if (config.request_timeout_milliseconds <= 0) {
return Error{Error::DATADOG_AGENT_INVALID_REQUEST_TIMEOUT,
"DatadogAgent: Request timeout must be a positive number of "
"milliseconds."};
}

result.request_timeout =
std::chrono::milliseconds(config.request_timeout_milliseconds);

Expand Down

0 comments on commit 99c1c65

Please sign in to comment.