Skip to content

Commit 55c4ee5

Browse files
committed
Tidy.
1 parent 78cb116 commit 55c4ee5

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

libs/client-sdk/include/launchdarkly/client_side/flag_manager/detail/flag_notifier.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include <boost/signals2.hpp>
44

55
#include "value.hpp"
6+
#include "launchdarkly/client_side/flag_manager/detail/flag_change_event.hpp"
67

78
namespace launchdarkly::client_side::flag_manager::detail {
89

libs/client-sdk/src/data_sources/streaming_data_handler.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ static tl::expected<
1717
std::unordered_map<std::string, launchdarkly::client_side::ItemDescriptor>,
1818
JsonError>
1919
tag_invoke(boost::json::value_to_tag<tl::expected<
20-
std::unordered_map<std::string, launchdarkly::client_side::ItemDescriptor>,
20+
std::unordered_map<std::string,
21+
launchdarkly::client_side::ItemDescriptor>,
2122
JsonError>> const& unused,
2223
boost::json::value const& json_value) {
2324
boost::ignore_unused(unused);
@@ -102,8 +103,8 @@ StreamingDataHandler::MessageStatus StreamingDataHandler::handle_message(
102103
LD_LOG(logger_, LogLevel::kError) << "Could not parse PUT message";
103104
return StreamingDataHandler::MessageStatus::kInvalidMessage;
104105
}
105-
auto res = boost::json::value_to<
106-
tl::expected<std::unordered_map<std::string, ItemDescriptor>, JsonError>>(
106+
auto res = boost::json::value_to<tl::expected<
107+
std::unordered_map<std::string, ItemDescriptor>, JsonError>>(
107108
parsed);
108109

109110
if (res.has_value()) {

libs/client-sdk/src/flag_manager/flag_manager.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ namespace launchdarkly::client_side::flag_manager::detail {
77
// accessed, and which it is being used init is called, then we want the
88
// flag being processed to be valid.
99

10-
void FlagManager::init(const std::unordered_map<std::string, ItemDescriptor>& data) {
10+
void FlagManager::init(
11+
std::unordered_map<std::string, ItemDescriptor> const& data) {
1112
std::lock_guard lock{data_mutex_};
1213

1314
data_.clear();
@@ -17,13 +18,14 @@ void FlagManager::init(const std::unordered_map<std::string, ItemDescriptor>& da
1718
}
1819
}
1920

20-
void FlagManager::upsert(const std::string& key, ItemDescriptor item) {
21+
void FlagManager::upsert(std::string const& key, ItemDescriptor item) {
2122
std::lock_guard lock{data_mutex_};
2223

2324
data_[key] = std::make_shared<ItemDescriptor>(std::move(item));
2425
}
2526

26-
std::shared_ptr<ItemDescriptor> FlagManager::get(const std::string& flag_key) const {
27+
std::shared_ptr<ItemDescriptor> FlagManager::get(
28+
std::string const& flag_key) const {
2729
std::lock_guard lock{data_mutex_};
2830

2931
auto found = data_.find(flag_key);

0 commit comments

Comments
 (0)