Skip to content

Commit

Permalink
use default timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
virasakagoda committed Jul 10, 2023
1 parent d4cc6b8 commit 0bd7ebb
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 0bd7ebb

Please sign in to comment.