forked from TrueCloudLab/frostfs-node
[#1706] cli: Do not duplicate payload on SG put
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
4e361e2ab4
commit
5139dc9864
2 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue