Skip to content

Commit b4070a4

Browse files
committed
remove unused helper
1 parent e123c05 commit b4070a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/viam/sdk/services/private/discovery_server.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ::grpc::Status DiscoveryServer::DiscoverResources(
2121
const std::vector<ResourceConfig> resources =
2222
discovery->discover_resources(helper.getExtra());
2323
for (const auto& resource : resources) {
24-
*response->mutable_resources()->Add() = to_proto(resource);
24+
*response->mutable_discoveries()->Add() = to_proto(resource);
2525
}
2626
});
2727
}
@@ -31,7 +31,7 @@ ::grpc::Status DiscoveryServer::DoCommand(
3131
const ::viam::common::v1::DoCommandRequest* request,
3232
::viam::common::v1::DoCommandResponse* response) noexcept {
3333
return make_service_helper<Discovery>(
34-
"DiscoveryServer::DoCommand", this, request)([&](auto& helper, auto& discovery) {
34+
"DiscoveryServer::DoCommand", this, request)([&](auto&, auto& discovery) {
3535
const ProtoStruct result = discovery->do_command(from_proto(request->command()));
3636
*response->mutable_result() = to_proto(result);
3737
});

0 commit comments

Comments
 (0)