forked from TrueCloudLab/frostfs-node
[#539] getsvc: Write payload direct to out stream
To reduce memory allocations. Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
286242cad0
commit
99bb488ebd
4 changed files with 27 additions and 28 deletions
|
@ -629,7 +629,6 @@ 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