Skip to content

Commit 7e281fc

Browse files
committed
more linting
1 parent b18feca commit 7e281fc

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ namespace impl {
1111

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

1717
std::vector<ResourceConfig> DiscoveryClient::discover_resources(const ProtoStruct& extra) {
1818
return make_client_helper(this, *stub_, &StubType::DiscoverResources)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace impl {
2020

2121
class DiscoveryServer : public ResourceServer,
2222
public viam::service::discovery::v1::DiscoveryService::Service {
23-
public:
23+
public:
2424
using interface_type = Discovery;
2525
using service_type = service::discovery::v1::DiscoveryService;
2626

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

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

22-
} // namespace discovery
23-
} // namespace sdktests
24-
} // namespace viam
22+
} // namespace discovery
23+
} // namespace sdktests
24+
} // namespace viam

src/viam/sdk/tests/test_utils.cpp

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

2929
std::vector<ResourceConfig> fake_discovered_resources() {
3030
return {
31-
ResourceConfig("camera",
32-
"mycam",
33-
"rdk",
34-
{{"width", 640}, {"height", 480}, {"format", "mjpeg"}},
35-
"rdk:component:camera",
36-
"rdk:builtin:webcam"),
31+
ResourceConfig("camera",
32+
"mycam",
33+
"rdk",
34+
{{"width", 640}, {"height", 480}, {"format", "mjpeg"}},
35+
"rdk:component:camera",
36+
"rdk:builtin:webcam"),
3737
ResourceConfig("motor",
38-
"arm_motor",
39-
"rand",
40-
{
38+
"arm_motor",
39+
"rand",
40+
{
4141
{"pins", {{"pwm", 18}, {"dir", 23}}},
4242
{"max_rpm", 100},
4343
{"encoder_steps", 200},
44-
},
45-
"rdk:component:motor",
46-
"rand:cool:motor"),
44+
},
45+
"rdk:component:motor",
46+
"rand:cool:motor"),
4747
ResourceConfig("sensor",
48-
"temp_sensor",
49-
"viam",
50-
{{"type", "temperature"}, {"unit", "celsius"}, {"poll_rate", 1000}},
51-
"rdk:component:sensor",
52-
"viam:temp:sensor1"),
53-
};
48+
"temp_sensor",
49+
"viam",
50+
{{"type", "temperature"}, {"unit", "celsius"}, {"poll_rate", 1000}},
51+
"rdk:component:sensor",
52+
"viam:temp:sensor1"),
53+
};
5454
}
5555

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

0 commit comments

Comments
 (0)