Fix spelling of indicies to indices in LogReader
Change-Id: I5d62fe7f9914ebf2ebebbe59b5e9d21d5acd89e3
Signed-off-by: James Kuszmaul <james.kuszmaul@bluerivertech.com>
diff --git a/aos/events/logging/log_reader.cc b/aos/events/logging/log_reader.cc
index fb63e79..be49393 100644
--- a/aos/events/logging/log_reader.cc
+++ b/aos/events/logging/log_reader.cc
@@ -618,7 +618,7 @@
? nullptr
: std::make_unique<TimestampMapper>(std::move(filtered_parts)),
filters_.get(), std::bind(&LogReader::NoticeRealtimeEnd, this), node,
- State::ThreadedBuffering::kNo, MaybeMakeReplayChannelIndicies(node));
+ State::ThreadedBuffering::kNo, MaybeMakeReplayChannelIndices(node));
State *state = states_[node_index].get();
state->SetNodeEventLoopFactory(
event_loop_factory_->GetNodeEventLoopFactory(node),
@@ -809,7 +809,7 @@
? nullptr
: std::make_unique<TimestampMapper>(std::move(filtered_parts)),
filters_.get(), std::bind(&LogReader::NoticeRealtimeEnd, this), node,
- State::ThreadedBuffering::kYes, MaybeMakeReplayChannelIndicies(node));
+ State::ThreadedBuffering::kYes, MaybeMakeReplayChannelIndices(node));
State *state = states_[node_index].get();
state->SetChannelCount(logged_configuration()->channels()->size());
@@ -1668,13 +1668,13 @@
// TODO(austin): Lazily re-build to save CPU?
}
-std::unique_ptr<const ReplayChannelIndicies>
-LogReader::MaybeMakeReplayChannelIndicies(const Node *node) {
+std::unique_ptr<const ReplayChannelIndices>
+LogReader::MaybeMakeReplayChannelIndices(const Node *node) {
if (replay_channels_ == nullptr) {
return nullptr;
} else {
- std::unique_ptr<ReplayChannelIndicies> replay_channel_indicies =
- std::make_unique<ReplayChannelIndicies>();
+ std::unique_ptr<ReplayChannelIndices> replay_channel_indices =
+ std::make_unique<ReplayChannelIndices>();
for (auto const &channel : *replay_channels_) {
const Channel *ch = configuration::GetChannel(
logged_configuration(), channel.first, channel.second, "", node);
@@ -1686,10 +1686,10 @@
}
const size_t channel_index =
configuration::ChannelIndex(logged_configuration(), ch);
- replay_channel_indicies->emplace_back(channel_index);
+ replay_channel_indices->emplace_back(channel_index);
}
- std::sort(replay_channel_indicies->begin(), replay_channel_indicies->end());
- return replay_channel_indicies;
+ std::sort(replay_channel_indices->begin(), replay_channel_indices->end());
+ return replay_channel_indices;
}
}
@@ -1748,16 +1748,16 @@
message_bridge::MultiNodeNoncausalOffsetEstimator *multinode_filters,
std::function<void()> notice_realtime_end, const Node *node,
LogReader::State::ThreadedBuffering threading,
- std::unique_ptr<const ReplayChannelIndicies> replay_channel_indicies)
+ std::unique_ptr<const ReplayChannelIndices> replay_channel_indices)
: timestamp_mapper_(std::move(timestamp_mapper)),
notice_realtime_end_(notice_realtime_end),
node_(node),
multinode_filters_(multinode_filters),
threading_(threading),
- replay_channel_indicies_(std::move(replay_channel_indicies)) {
- if (replay_channel_indicies_ != nullptr) {
+ replay_channel_indices_(std::move(replay_channel_indices)) {
+ if (replay_channel_indices_ != nullptr) {
timestamp_mapper_->set_replay_channels_callback(
- [filter = replay_channel_indicies_.get()](
+ [filter = replay_channel_indices_.get()](
const TimestampedMessage &message) -> bool {
auto const begin = filter->cbegin();
auto const end = filter->cend();
diff --git a/aos/events/logging/log_reader.h b/aos/events/logging/log_reader.h
index fd5a935..f56f6fa 100644
--- a/aos/events/logging/log_reader.h
+++ b/aos/events/logging/log_reader.h
@@ -35,7 +35,7 @@
using ReplayChannels =
std::vector<std::pair<std::string_view, std::string_view>>;
// Vector of channel indices
-using ReplayChannelIndicies = std::vector<size_t>;
+using ReplayChannelIndices = std::vector<size_t>;
// We end up with one of the following 3 log file types.
//
@@ -350,7 +350,7 @@
message_bridge::MultiNodeNoncausalOffsetEstimator *multinode_filters,
std::function<void()> notice_realtime_end, const Node *node,
ThreadedBuffering threading,
- std::unique_ptr<const ReplayChannelIndicies> replay_channel_indicies);
+ std::unique_ptr<const ReplayChannelIndices> replay_channel_indices);
// Connects up the timestamp mappers.
void AddPeer(State *peer);
@@ -753,12 +753,12 @@
// If a ReplayChannels was passed to LogReader, this will hold the
// indices of the channels to replay for the Node represented by
// the instance of LogReader::State.
- std::unique_ptr<const ReplayChannelIndicies> replay_channel_indicies_;
+ std::unique_ptr<const ReplayChannelIndices> replay_channel_indices_;
};
// If a ReplayChannels was passed to LogReader then creates a
- // ReplayChannelIndicies for the given node. Otherwise, returns a nullptr.
- std::unique_ptr<const ReplayChannelIndicies> MaybeMakeReplayChannelIndicies(
+ // ReplayChannelIndices for the given node. Otherwise, returns a nullptr.
+ std::unique_ptr<const ReplayChannelIndices> MaybeMakeReplayChannelIndices(
const Node *node);
// Node index -> State.