Skip to content

Commit

Permalink
extraStruct -> extraStructPb
Browse files Browse the repository at this point in the history
  • Loading branch information
hexbabe committed Dec 4, 2024
1 parent bffda3f commit 6ba8c08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/camera/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,15 +248,15 @@ 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
}

resp, err := c.client.GetPointCloud(ctx, &pb.GetPointCloudRequest{
Name: c.name,
MimeType: utils.MimeTypePCD,
Extra: extraStruct,
Extra: extraStructPb,
})
getPcdSpan.End()
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions module/modmanager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
},
}

Expand Down

0 comments on commit 6ba8c08

Please sign in to comment.