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
|
package putsvc
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
|
||||||
"context"
|
"context"
|
||||||
"crypto/ecdsa"
|
"crypto/ecdsa"
|
||||||
|
|
||||||
|
@ -43,8 +42,7 @@ func (t *remoteTarget) Close() (*transformer.AccessIdentifiers, error) {
|
||||||
id, err := c.PutObject(t.ctx, new(client.PutObjectParams).
|
id, err := c.PutObject(t.ctx, new(client.PutObjectParams).
|
||||||
WithObject(
|
WithObject(
|
||||||
t.obj.SDK(),
|
t.obj.SDK(),
|
||||||
).
|
),
|
||||||
WithPayloadReader(bytes.NewReader(t.obj.GetPayload())),
|
|
||||||
client.WithTTL(1), // FIXME: use constant
|
client.WithTTL(1), // FIXME: use constant
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue