Skip to content

Commit 72451cf

Browse files
committed
fix lints
1 parent c72fcd6 commit 72451cf

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

libs/common/src/events/client_events.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ FeatureEventBase::FeatureEventBase(FeatureEventParams const& params)
88
variation(params.eval_result.detail().variation_index()),
99
value(params.eval_result.detail().value()),
1010
default_(params.default_) {
11-
1211
// TODO(cwaldren): should also add the reason if the
1312
// variation method was VariationDetail().
1413
if (params.eval_result.track_reason()) {

libs/common/src/serialization/events/json_events.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,9 @@ void tag_invoke(boost::json::value_from_tag const& tag,
8080
void tag_invoke(boost::json::value_from_tag const& tag,
8181
boost::json::value& json_value,
8282
events::OutputEvent const& event) {
83-
std::visit([&](auto const& e) mutable { tag_invoke(tag, json_value, e); },
84-
event);
83+
std::visit(
84+
[&](auto const& event) mutable { tag_invoke(tag, json_value, event); },
85+
event);
8586
}
8687

8788
} // namespace launchdarkly::events

libs/common/tests/event_processor_test.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ TEST(EventProcessorTests, ProcessorCompiles) {
2424
using namespace launchdarkly;
2525

2626
Logger logger{std::make_unique<ConsoleBackend>(LogLevel::kDebug, "test")};
27-
boost::asio::io_context io;
27+
boost::asio::io_context ioc;
2828

2929
auto config = client::EventsBuilder()
3030
.capacity(10)
@@ -33,21 +33,21 @@ TEST(EventProcessorTests, ProcessorCompiles) {
3333

3434
auto endpoints = client::Endpoints().build();
3535

36-
events::detail::AsioEventProcessor ep(io.get_executor(), *config,
37-
*endpoints, "password", logger);
38-
std::thread t([&]() { io.run(); });
36+
events::detail::AsioEventProcessor processor(
37+
ioc.get_executor(), *config, *endpoints, "password", logger);
38+
std::thread ioc_thread([&]() { ioc.run(); });
3939

40-
auto c = launchdarkly::ContextBuilder().kind("org", "ld").build();
41-
ASSERT_TRUE(c.valid());
40+
auto context = launchdarkly::ContextBuilder().kind("org", "ld").build();
41+
ASSERT_TRUE(context.valid());
4242

43-
auto ev = events::client::IdentifyEventParams{
43+
auto identify_event = events::client::IdentifyEventParams{
4444
std::chrono::system_clock::now(),
45-
c,
45+
context,
4646
};
4747

4848
for (std::size_t i = 0; i < 10; i++) {
49-
ep.AsyncSend(ev);
49+
processor.AsyncSend(identify_event);
5050
}
51-
ep.AsyncClose();
52-
t.join();
51+
processor.AsyncClose();
52+
ioc_thread.join();
5353
}

libs/common/tests/event_summarizer_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ TEST_P(SummaryCounterTestsFixture, EventsAreCounted) {
107107
}
108108
}
109109

110-
INSTANTIATE_TEST_CASE_P(
110+
INSTANTIATE_TEST_SUITE_P(
111111
SummaryCounterTests,
112112
SummaryCounterTestsFixture,
113113
::testing::Values(

0 commit comments

Comments
 (0)