update on net6
This commit is contained in:
2
MareAPI
2
MareAPI
Submodule MareAPI updated: 21fe024dfb...374cc31bab
@@ -74,10 +74,7 @@ namespace MareSynchronos.WebAPI
|
|||||||
Logger.Debug("Downloading files (Download ID " + currentDownloadId + ")");
|
Logger.Debug("Downloading files (Download ID " + currentDownloadId + ")");
|
||||||
|
|
||||||
List<DownloadFileDto> downloadFileInfoFromService = new List<DownloadFileDto>();
|
List<DownloadFileDto> downloadFileInfoFromService = new List<DownloadFileDto>();
|
||||||
foreach (var file in fileReplacementDto)
|
downloadFileInfoFromService.AddRange(await _mareHub!.InvokeAsync<List<DownloadFileDto>>(Api.InvokeGetFilesSizes, fileReplacementDto.Select(m => m.Hash).ToList(), ct));
|
||||||
{
|
|
||||||
downloadFileInfoFromService.Add(await _mareHub!.InvokeAsync<DownloadFileDto>(Api.InvokeFileGetFileSize, file.Hash, ct));
|
|
||||||
}
|
|
||||||
|
|
||||||
CurrentDownloads[currentDownloadId] = downloadFileInfoFromService.Distinct().Select(d => new DownloadFileTransfer(d))
|
CurrentDownloads[currentDownloadId] = downloadFileInfoFromService.Distinct().Select(d => new DownloadFileTransfer(d))
|
||||||
.Where(d => d.CanBeTransferred).ToList();
|
.Where(d => d.CanBeTransferred).ToList();
|
||||||
|
|||||||
Reference in New Issue
Block a user