From 4e13646a55652f4f53d9af61fab830bc6de6eb5c Mon Sep 17 00:00:00 2001 From: Arthur Schreiber Date: Thu, 11 Apr 2024 21:21:43 +0000 Subject: [PATCH] Fix last remaining proto use. --- go/vt/topo/vschema.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/go/vt/topo/vschema.go b/go/vt/topo/vschema.go index a2503673deb..f91c5d0d547 100644 --- a/go/vt/topo/vschema.go +++ b/go/vt/topo/vschema.go @@ -19,8 +19,6 @@ package topo import ( "path" - "google.golang.org/protobuf/proto" - "context" "vitess.io/vitess/go/vt/log" @@ -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) }