Skip to content

Commit 955c38b

Browse files
committed
nodetag: use Marshal and Unmarshal from pb package
Change-Id: I5b6ae5d6b424dab40a236025ffb46dddf54d182c
1 parent 89ffd65 commit 955c38b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

nodetag/sign.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"bytes"
88
"context"
99

10-
"github.com/gogo/protobuf/proto"
1110
"github.com/zeebo/errs"
1211

1312
"storj.io/common/pb"
@@ -28,7 +27,7 @@ var (
2827
// Sign create a signed tag set from a raw one.
2928
func Sign(ctx context.Context, tagSet *pb.NodeTagSet, signer signing.Signer) (*pb.SignedNodeTagSet, error) {
3029
signed := &pb.SignedNodeTagSet{}
31-
raw, err := proto.Marshal(tagSet)
30+
raw, err := pb.Marshal(tagSet)
3231
if err != nil {
3332
return nil, errs.Wrap(err)
3433
}
@@ -53,7 +52,7 @@ func Verify(ctx context.Context, tags *pb.SignedNodeTagSet, signee signing.Signe
5352
return nil, SignatureErr.Wrap(err)
5453
}
5554
tagset := &pb.NodeTagSet{}
56-
err = proto.Unmarshal(tags.SerializedTag, tagset)
55+
err = pb.Unmarshal(tags.SerializedTag, tagset)
5756
if err != nil {
5857
return nil, SerializationErr.Wrap(err)
5958
}

0 commit comments

Comments
 (0)