possibly fix the github timeout issue

This commit is contained in:
Caelan Sayler
2024-12-29 10:06:45 +00:00
committed by Caelan
parent dddfd31d09
commit e53aaf4de6

View File

@@ -159,7 +159,7 @@ public class GitHubRepository(ILogger logger) : SourceRepository<GitHubDownloadO
private async Task UploadFileAsAsset(GitHubClient client, Release release, string filePath)
{
using var stream = File.OpenRead(filePath);
var data = new ReleaseAssetUpload(Path.GetFileName(filePath), "application/octet-stream", stream, timeout: null);
var data = new ReleaseAssetUpload(Path.GetFileName(filePath), "application/octet-stream", stream, timeout: TimeSpan.Zero);
await client.Repository.Release.UploadAsset(release, data, CancellationToken.None);
}
}