diff --git a/CHANGELOG.md b/CHANGELOG.md index a5f7227e..42c9ae31 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/cmd/neofs-cli/modules/storagegroup/put.go b/cmd/neofs-cli/modules/storagegroup/put.go index ce82db07..ef1ad4b8 100644 --- a/cmd/neofs-cli/modules/storagegroup/put.go +++ b/cmd/neofs-cli/modules/storagegroup/put.go @@ -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)