Skip to content

Commit

Permalink
Changes to Wingman upload
Browse files Browse the repository at this point in the history
Increase the base timeout time to 2 minutes
Skip an upload for WvW logs
  • Loading branch information
Plenyx committed Nov 16, 2024
1 parent 3aca05f commit ef7a619
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Gw2Wingman/Gw2WingmanUploader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,17 @@ namespace PlenBotLogUploader.Gw2Wingman
internal class Gw2WingmanUploader
{
private const string uploadUrl = "https://gw2wingman.nevermindcreations.de/uploadEVTC";
private readonly HttpClientController httpClientController = new();
private readonly HttpClientController httpClientController = new()
{
Timeout = TimeSpan.FromSeconds(120),
};

internal async Task<string> Upload(string file, DpsReportJsonExtraJson extraJson)
{
if (extraJson.TriggerId == 1)
{
return ">:> Wingman upload has been skipped for a WvW log";
}
var fileInfo = new FileInfo(file);
try
{
Expand Down

0 comments on commit ef7a619

Please sign in to comment.