[#172] Use protobuf v2 API for go

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-10-19 21:51:59 +03:00 committed by Alex Vanin
parent b681b28e33
commit 8351c78f58
28 changed files with 10089 additions and 32649 deletions

View file

@ -3,6 +3,7 @@ package refs
import (
"github.com/nspcc-dev/neofs-api-go/util/proto"
refs "github.com/nspcc-dev/neofs-api-go/v2/refs/grpc"
goproto "google.golang.org/protobuf/proto"
)
const (
@ -147,7 +148,7 @@ func (a *Address) StableUnmarshal(data []byte) error {
}
addrGRPC := new(refs.Address)
if err := addrGRPC.Unmarshal(data); err != nil {
if err := goproto.Unmarshal(data, addrGRPC); err != nil {
return err
}