From 5139dc98644a15846dac18d8483f9ce7d12ad0e5 Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Thu, 18 Aug 2022 15:10:06 +0300 Subject: [PATCH] [#1706] cli: Do not duplicate payload on SG put Signed-off-by: Pavel Karpy --- CHANGELOG.md | 1 + cmd/neofs-cli/modules/storagegroup/put.go | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a5f7227e3..42c9ae317 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 ce82db072..ef1ad4b84 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)