diff --git a/src/FrostFS.SDK.ClientV2/FrostFSClient.cs b/src/FrostFS.SDK.ClientV2/FrostFSClient.cs index 830eb94..a7bfff4 100644 --- a/src/FrostFS.SDK.ClientV2/FrostFSClient.cs +++ b/src/FrostFS.SDK.ClientV2/FrostFSClient.cs @@ -294,7 +294,7 @@ public class FrostFSClient : IFrostFSClient return service.GetRangeAsync(args); } - public Task>> GetRangeHashAsync(PrmRangeHashGet args) + public Task[]> GetRangeHashAsync(PrmRangeHashGet args) { if (args is null) throw new ArgumentNullException(nameof(args)); diff --git a/src/FrostFS.SDK.ClientV2/Interfaces/IFrostFSClient.cs b/src/FrostFS.SDK.ClientV2/Interfaces/IFrostFSClient.cs index 48ab8e8..8e4bae4 100644 --- a/src/FrostFS.SDK.ClientV2/Interfaces/IFrostFSClient.cs +++ b/src/FrostFS.SDK.ClientV2/Interfaces/IFrostFSClient.cs @@ -44,7 +44,7 @@ public interface IFrostFSClient : IDisposable Task GetRangeAsync(PrmRangeGet args); - Task>> GetRangeHashAsync(PrmRangeHashGet args); + Task[]> GetRangeHashAsync(PrmRangeHashGet args); Task PutObjectAsync(PrmObjectPut args); diff --git a/src/FrostFS.SDK.ClientV2/Pool/Pool.cs b/src/FrostFS.SDK.ClientV2/Pool/Pool.cs index 9e34551..00abda2 100644 --- a/src/FrostFS.SDK.ClientV2/Pool/Pool.cs +++ b/src/FrostFS.SDK.ClientV2/Pool/Pool.cs @@ -738,7 +738,7 @@ public partial class Pool : IFrostFSClient return await client.Client!.GetRangeAsync(args).ConfigureAwait(false); } - public async Task>> GetRangeHashAsync(PrmRangeHashGet args) + public async Task[]> GetRangeHashAsync(PrmRangeHashGet args) { if (args is null) { diff --git a/src/FrostFS.SDK.ClientV2/Services/ObjectServiceProvider.cs b/src/FrostFS.SDK.ClientV2/Services/ObjectServiceProvider.cs index bb742a5..322fb3e 100644 --- a/src/FrostFS.SDK.ClientV2/Services/ObjectServiceProvider.cs +++ b/src/FrostFS.SDK.ClientV2/Services/ObjectServiceProvider.cs @@ -150,7 +150,7 @@ internal sealed class ObjectServiceProvider(ObjectService.ObjectServiceClient cl return new RangeReader(call); } - internal async Task>> GetRangeHashAsync(PrmRangeHashGet args) + internal async Task[]> GetRangeHashAsync(PrmRangeHashGet args) { var ctx = args.Context!; @@ -197,7 +197,7 @@ internal sealed class ObjectServiceProvider(ObjectService.ObjectServiceClient cl Verifier.CheckResponse(response); - var hashCollection = response.Body.HashList.ToArray().Select(h => h.Memory); + var hashCollection = response.Body.HashList.Select(h => h.Memory).ToArray(); return hashCollection; }