[#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:
parent
32c77f3a23
commit
286242cad0
4 changed files with 20 additions and 7 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue