From f0047fa3c9f0f4d2fab7c2903102bb3b09b76593 Mon Sep 17 00:00:00 2001 From: Matt Lord Date: Wed, 1 Jan 2025 16:20:24 -0500 Subject: [PATCH] Minor changes from self review Signed-off-by: Matt Lord --- go/vt/vtctl/grpcvtctldserver/server.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/go/vt/vtctl/grpcvtctldserver/server.go b/go/vt/vtctl/grpcvtctldserver/server.go index 3709e3a3b8b..d4987200af9 100644 --- a/go/vt/vtctl/grpcvtctldserver/server.go +++ b/go/vt/vtctl/grpcvtctldserver/server.go @@ -882,6 +882,9 @@ func (s *VtctldServer) CopySchemaShard(ctx context.Context, req *vtctldatapb.Cop span.Annotate("destination_shard", req.DestinationShard) waitReplicasTimeout, _, err := protoutil.DurationFromProto(req.WaitReplicasTimeout) + if err != nil { + return nil, err + } return &vtctldatapb.CopySchemaShardResponse{}, s.ws.CopySchemaShard(ctx, req.SourceTabletAlias, req.Tables, req.ExcludeTables, req.IncludeViews, req.DestinationKeyspace, req.DestinationShard,