[#13] Drop comments
All checks were successful
DCO / DCO (pull_request) Successful in 44s

Signed-off-by: Pavel Gross <p.gross@yadro.com>
This commit is contained in:
Pavel Gross 2024-06-27 12:38:14 +03:00
parent 17492ee871
commit 605463ec24

View file

@ -310,7 +310,6 @@ internal class ObjectServiceProvider : ContextAccessor
return ObjectId.FromHash(response.Body.ObjectId.Value.ToByteArray());
}
// TODO: add implementation with stream writer!
private async Task<ModelsV2.Object> GetObject(GetRequest request, Context ctx)
{
var reader = GetObjectInit(request, ctx);
@ -321,28 +320,7 @@ internal class ObjectServiceProvider : ContextAccessor
@object.ObjectReader = reader;
return @object;
// obj.
// return obj.ToModel();
// var payload = new byte[obj.Header.PayloadLength];
// var offset = 0L;
// var chunk = await stream.ReadChunk();
// while (chunk is not null && (ulong)offset < obj.Header.PayloadLength)
// {
// var length = Math.Min((long)obj.Header.PayloadLength - offset, chunk.Length);
// Array.Copy(chunk, 0, payload, offset, length);
// offset += chunk.Length;
// chunk = await stream.ReadChunk();
// }
// obj.Payload = ByteString.CopyFrom(payload);
// return obj;
return @object;
}
private ObjectReader GetObjectInit(GetRequest initRequest, Context ctx)