forked from TrueCloudLab/frostfs-api-go
[#172] Use protobuf v2 API for go
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
b681b28e33
commit
8351c78f58
28 changed files with 10089 additions and 32649 deletions
|
@ -3,6 +3,7 @@ package object
|
|||
import (
|
||||
"github.com/nspcc-dev/neofs-api-go/util/proto"
|
||||
object "github.com/nspcc-dev/neofs-api-go/v2/object/grpc"
|
||||
goproto "google.golang.org/protobuf/proto"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -492,7 +493,7 @@ func (o *Object) StableUnmarshal(data []byte) error {
|
|||
}
|
||||
|
||||
objGRPC := new(object.Object)
|
||||
if err := objGRPC.Unmarshal(data); err != nil {
|
||||
if err := goproto.Unmarshal(data, objGRPC); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue