[#104] Update neofs-api-go with new protobuf API

Also update contains JSON converters for neofs-cli
and fixes bug in container.set-acl command of SDK.

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-10-20 13:50:35 +03:00 committed by Alex Vanin
parent 9e08b41a6f
commit e6f04f7785
7 changed files with 19 additions and 11 deletions

View file

@ -22,6 +22,7 @@ import (
grpccontainer "github.com/nspcc-dev/neofs-api-go/v2/container/grpc"
"github.com/nspcc-dev/neofs-node/pkg/policy"
"github.com/spf13/cobra"
"google.golang.org/protobuf/proto"
)
const (
@ -265,7 +266,7 @@ var getContainerInfoCmd = &cobra.Command{
// todo: make more user friendly way to parse raw data
msg := new(grpccontainer.Container)
if msg.Unmarshal(data) != nil {
if proto.Unmarshal(data, msg) != nil {
return errors.New("can't unmarshal container")
}