Skip to content

Commit b18feca

Browse files
committed
more linting
1 parent 6a23418 commit b18feca

File tree

6 files changed

+8
-11
lines changed

6 files changed

+8
-11
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace sdk {
1010
namespace impl {
1111

1212
DiscoveryClient::DiscoveryClient(std::string name std::shared_ptr<grpc::Channel> channel)
13-
: Discovery(std::move(name)),
13+
: Discovery(std::move(name)),
1414
stub_(viam::service::discovery::v1::DiscoveryService::NewStub(channel)),
1515
channel_(std::move(channel)) {}
1616

@@ -26,7 +26,6 @@ ProtoStruct DiscoveryClient::do_command(const ProtoStruct& extra) {
2626
.invoke([](auto& response) { return from_proto(response.result()); });
2727
}
2828

29-
3029
} // namespace impl
3130
} // namespace sdk
3231
} // namespace viam

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ ::grpc::Status DiscoveryServer::DoCommand(
3232
const ProtoStruct result = discovery->do_command(from_proto(request->command()));
3333
*response->mutable_result() = to_proto(result);
3434
});
35-
}
35+
}
3636

3737
} // namespace impl
3838
} // namespace sdk

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ namespace impl {
1818
/// @brief gRPC server implementation of a `Discovery` service.
1919
/// @ingroup Discovery
2020

21-
class DiscoveryServer : public ResourceServer,
21+
class DiscoveryServer : public ResourceServer,
2222
public viam::service::discovery::v1::DiscoveryService::Service {
2323
public:
2424
using interface_type = Discovery;
2525
using service_type = service::discovery::v1::DiscoveryService;
26-
26+
2727
explicit DiscoveryServer(std::shared_ptr<ResourceManager> manager);
2828

2929
::grpc::Status DiscoverResources(

src/viam/sdk/tests/mocks/mock_discovery.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ sdk::ProtoStruct MockDiscovery::do_command(const sdk::ProtoStruct& command) {
1919
return (peek_command = command);
2020
}
2121

22-
2322
} // namespace discovery
2423
} // namespace sdktests
2524
} // namespace viam

src/viam/sdk/tests/mocks/mock_discovery.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,3 @@ class MockDiscovery : public sdk::Discovery {
2222
} // namespace discovery
2323
} // namespace sdktests
2424
} // namespace viam
25-

src/viam/sdk/tests/test_utils.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ std::vector<GeometryConfig> fake_geometries() {
2828

2929
std::vector<ResourceConfig> fake_discovered_resources() {
3030
return {
31-
ResourceConfig( "camera",
31+
ResourceConfig("camera",
3232
"mycam",
3333
"rdk",
3434
{{"width", 640}, {"height", 480}, {"format", "mjpeg"}},
3535
"rdk:component:camera",
3636
"rdk:builtin:webcam"),
37-
ResourceConfig( "motor",
37+
ResourceConfig("motor",
3838
"arm_motor",
3939
"rand",
4040
{
@@ -44,13 +44,13 @@ std::vector<ResourceConfig> fake_discovered_resources() {
4444
},
4545
"rdk:component:motor",
4646
"rand:cool:motor"),
47-
ResourceConfig( "sensor",
47+
ResourceConfig("sensor",
4848
"temp_sensor",
4949
"viam",
5050
{{"type", "temperature"}, {"unit", "celsius"}, {"poll_rate", 1000}},
5151
"rdk:component:sensor",
5252
"viam:temp:sensor1"),
53-
};
53+
};
5454
}
5555

5656
TestServer::TestServer(std::shared_ptr<Server> sdk_server) : sdk_server_(std::move(sdk_server)) {}

0 commit comments

Comments
 (0)