Skip to content

Commit

Permalink
Merge pull request #239 from Mangopay/bugfix/timeout-fix
Browse files Browse the repository at this point in the history
fixed timeout config
  • Loading branch information
iulian03 authored Jan 30, 2025
2 parents 900bfb9 + 9a33b5f commit 5db90cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MangoPay.SDK/Core/RestTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ private RestSharpDto(string url, int timeout)
_options = new RestClientOptions(url)
{
ThrowOnAnyError = false,
Timeout = new TimeSpan(timeout * 1000L)
Timeout = new TimeSpan(0, 0, 0, 0, timeout)
};

Client = new RestClient(_options, configureSerialization: s => s.UseSerializer(() => new MangoPaySerializer()));
Expand Down

0 comments on commit 5db90cc

Please sign in to comment.