mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-13 12:54:14 +01:00
add hashes to filesizerequest
This commit is contained in:
parent
a63174009f
commit
dab12fbb30
1 changed files with 1 additions and 0 deletions
|
|
@ -51,6 +51,7 @@ namespace MareSynchronosServer.Hubs
|
||||||
List<DownloadFileDto> response = new();
|
List<DownloadFileDto> response = new();
|
||||||
|
|
||||||
FileSizeRequest request = new FileSizeRequest();
|
FileSizeRequest request = new FileSizeRequest();
|
||||||
|
request.Hash.AddRange(hashes);
|
||||||
var grpcResponse = await _fileServiceClient.GetFileSizesAsync(request).ConfigureAwait(false);
|
var grpcResponse = await _fileServiceClient.GetFileSizesAsync(request).ConfigureAwait(false);
|
||||||
|
|
||||||
foreach (var hash in grpcResponse.HashToFileSize)
|
foreach (var hash in grpcResponse.HashToFileSize)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue