diff --git a/components/camera/client.go b/components/camera/client.go index 632dd402f06..6dd8ed72b6c 100644 --- a/components/camera/client.go +++ b/components/camera/client.go @@ -248,7 +248,7 @@ func (c *client) NextPointCloud(ctx context.Context) (pointcloud.PointCloud, err if ctx.Value(data.FromDMContextKey{}) == true { extra[data.FromDMString] = true } - extraStruct, err := goprotoutils.StructToStructPb(extra) + extraStructPb, err := goprotoutils.StructToStructPb(extra) if err != nil { return nil, err } @@ -256,7 +256,7 @@ func (c *client) NextPointCloud(ctx context.Context) (pointcloud.PointCloud, err resp, err := c.client.GetPointCloud(ctx, &pb.GetPointCloudRequest{ Name: c.name, MimeType: utils.MimeTypePCD, - Extra: extraStruct, + Extra: extraStructPb, }) getPcdSpan.End() if err != nil { diff --git a/module/modmanager/manager.go b/module/modmanager/manager.go index f8597f5303b..8adf498eb78 100644 --- a/module/modmanager/manager.go +++ b/module/modmanager/manager.go @@ -1223,13 +1223,13 @@ func (m *module) registerResources(mgr modmaninterface.ModuleManager, logger log return mgr.AddResource(ctx, conf, DepsToNames(deps)) }, Discover: func(ctx context.Context, logger logging.Logger, extra map[string]interface{}) (interface{}, error) { - extraStruct, err := structpb.NewStruct(extra) + extraStructPb, err := structpb.NewStruct(extra) if err != nil { return nil, err } req := &robotpb.DiscoverComponentsRequest{ Queries: []*robotpb.DiscoveryQuery{ - {Subtype: apiCopy.API.String(), Model: modelCopy.String(), Extra: extraStruct}, + {Subtype: apiCopy.API.String(), Model: modelCopy.String(), Extra: extraStructPb}, }, }