[#1706] cli: Do not duplicate payload on SG put

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
support/v0.34
Pavel Karpy 2022-08-18 15:10:06 +03:00 committed by LeL
parent 4e361e2ab4
commit 5139dc9864
2 changed files with 1 additions and 2 deletions

View File

@ -9,6 +9,7 @@ Changelog for NeoFS Node
### Fixed
- Panic on write-cache's `Delete` operation (#1664)
- Payload duplication in `neofs-cli storagegroup put` (#1706)
### Removed

View File

@ -1,7 +1,6 @@
package storagegroup
import (
"bytes"
"crypto/ecdsa"
"errors"
"fmt"
@ -113,7 +112,6 @@ func putSG(cmd *cobra.Command, _ []string) {
storagegroupSDK.WriteToObject(*sg, obj)
putPrm.SetHeader(obj)
putPrm.SetPayloadReader(bytes.NewReader(obj.Payload()))
res, err := internalclient.PutObject(putPrm)
common.ExitOnErr(cmd, "rpc error: %w", err)