[#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
|
### Fixed
|
||||||
- Panic on write-cache's `Delete` operation (#1664)
|
- Panic on write-cache's `Delete` operation (#1664)
|
||||||
|
- Payload duplication in `neofs-cli storagegroup put` (#1706)
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
package storagegroup
|
package storagegroup
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
|
||||||
"crypto/ecdsa"
|
"crypto/ecdsa"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
@ -113,7 +112,6 @@ func putSG(cmd *cobra.Command, _ []string) {
|
||||||
storagegroupSDK.WriteToObject(*sg, obj)
|
storagegroupSDK.WriteToObject(*sg, obj)
|
||||||
|
|
||||||
putPrm.SetHeader(obj)
|
putPrm.SetHeader(obj)
|
||||||
putPrm.SetPayloadReader(bytes.NewReader(obj.Payload()))
|
|
||||||
|
|
||||||
res, err := internalclient.PutObject(putPrm)
|
res, err := internalclient.PutObject(putPrm)
|
||||||
common.ExitOnErr(cmd, "rpc error: %w", err)
|
common.ExitOnErr(cmd, "rpc error: %w", err)
|
||||||
|
|
Loading…
Reference in a new issue