Skip to content

Commit

Permalink
Fix last remaining proto use.
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurschreiber committed Apr 11, 2024
1 parent dea2514 commit 4e13646
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions go/vt/topo/vschema.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ package topo
import (
"path"

"google.golang.org/protobuf/proto"

"context"

"vitess.io/vitess/go/vt/log"
Expand Down Expand Up @@ -68,7 +66,7 @@ func (ts *Server) GetVSchema(ctx context.Context, keyspace string) (*vschemapb.K
return nil, err
}
var vs vschemapb.Keyspace
err = proto.Unmarshal(data, &vs)
err = vs.UnmarshalVT(data)
if err != nil {
return nil, vterrors.Wrapf(err, "bad vschema data: %q", data)
}
Expand Down

0 comments on commit 4e13646

Please sign in to comment.