Revert commit 803ea345 that which spawned a duplication of the payload of objects. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
0a51263e72
commit
867f1d772d
1 changed files with 1 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
|||
package putsvc
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"crypto/ecdsa"
|
||||
|
||||
|
@ -43,8 +42,7 @@ 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