Skip to content

Commit

Permalink
use default timeout (#38)
Browse files Browse the repository at this point in the history
Co-authored-by: Virasak Dungrikaew <[email protected]>
  • Loading branch information
virasak and virasakagoda authored Jul 10, 2023
1 parent f6eb265 commit c094a88
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Agoda.DevFeedback.Common/DevFeedbackPublisher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public static async Task PublishAsync(string apiEndpoint, object data, DevLocalD
var targetEndpoint = GetApiEndpoint(devLocalDataType, apiEndpoint);
using (var httpClient = new HttpClient())
{
httpClient.Timeout = TimeSpan.FromSeconds(2);
var content = new StringContent(JsonConvert.SerializeObject(data), Encoding.UTF8, "application/json");
var response = await httpClient.PostAsync(targetEndpoint, content);
response.EnsureSuccessStatusCode();
Expand Down

0 comments on commit c094a88

Please sign in to comment.