specific type

This commit is contained in:
Pavel Gross 2024-11-14 11:17:51 +03:00
parent f809ff137e
commit 093cd91e01
4 changed files with 5 additions and 5 deletions

View file

@ -290,7 +290,7 @@ public class FrostFSClient : IFrostFSClient
return service.GetRangeAsync(args);
}
public Task<IEnumerable<ReadOnlyMemory<byte>>> GetRangeHashAsync(PrmRangeHashGet args)
public Task<ReadOnlyMemory<byte>[]> GetRangeHashAsync(PrmRangeHashGet args)
{
if (args is null)
throw new ArgumentNullException(nameof(args));

View file

@ -45,7 +45,7 @@ public interface IFrostFSClient : IDisposable
Task<RangeReader> GetRangeAsync(PrmRangeGet args);
Task<IEnumerable<ReadOnlyMemory<byte>>> GetRangeHashAsync(PrmRangeHashGet args);
Task<ReadOnlyMemory<byte>[]> GetRangeHashAsync(PrmRangeHashGet args);
Task<FrostFsObjectId> PutObjectAsync(PrmObjectPut args);

View file

@ -613,7 +613,7 @@ public partial class Pool : IFrostFSClient
return await client.Client!.GetRangeAsync(args).ConfigureAwait(false);
}
public async Task<IEnumerable<ReadOnlyMemory<byte>>> GetRangeHashAsync(PrmRangeHashGet args)
public async Task<ReadOnlyMemory<byte>[]> GetRangeHashAsync(PrmRangeHashGet args)
{
var client = Connection();
return await client.Client!.GetRangeHashAsync(args).ConfigureAwait(false);

View file

@ -136,7 +136,7 @@ internal sealed class ObjectServiceProvider(ObjectService.ObjectServiceClient cl
return new RangeReader(call);
}
internal async Task<IEnumerable<ReadOnlyMemory<byte>>> GetRangeHashAsync(PrmRangeHashGet args)
internal async Task<ReadOnlyMemory<byte>[]> GetRangeHashAsync(PrmRangeHashGet args)
{
var ctx = args.Context!;
@ -178,7 +178,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;
}