forked from TrueCloudLab/frostfs-node
[#51] object/put: Fix incorrect splited object streaming
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
1a169a1a9d
commit
3692f708ca
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
package putsvc
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"crypto/ecdsa"
|
||||
|
||||
|
@ -42,7 +43,8 @@ func (t *remoteTarget) Close() (*transformer.AccessIdentifiers, error) {
|
|||
id, err := c.PutObject(t.ctx, new(client.PutObjectParams).
|
||||
WithObject(
|
||||
t.obj.SDK(),
|
||||
),
|
||||
).
|
||||
WithPayloadReader(bytes.NewReader(t.obj.GetPayload())),
|
||||
client.WithTTL(1), // FIXME: use constant
|
||||
)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue