[#539] getsvc: Use buffer to assemble object

To reduce memory consumption.

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2023-07-24 13:40:47 +03:00
parent 32c77f3a23
commit 286242cad0
4 changed files with 20 additions and 7 deletions

View file

@ -629,6 +629,7 @@ func TestGetRemoteSmall(t *testing.T) {
*c1, *c2 = *c2, *c1
w.SetPayloadBuffer(make([]byte, 0))
err = svc.Get(ctx, p)
require.NoError(t, err)
require.Equal(t, obj, w.Object())