Skip to content

Commit

Permalink
chore: Remove template Callbacks (#4431)
Browse files Browse the repository at this point in the history
Signed-off-by: Stepan Bagritsevich <[email protected]>
  • Loading branch information
BagritsevichStepan authored Jan 13, 2025
1 parent 29cde99 commit f6441df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/search/doc_accessors.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ FieldValue ExtractSortableValueFromJson(const search::Schema& schema, string_vie
}

/* Returns true if json elements were successfully processed. */
template <typename Callback>
bool ProcessJsonElements(const std::vector<JsonType>& json_elements, Callback&& cb) {
bool ProcessJsonElements(const std::vector<JsonType>& json_elements,
absl::FunctionRef<bool(const JsonType&)> cb) {
auto process = [&cb](const auto& json_range) -> bool {
for (const auto& json : json_range) {
if (!json.is_null() && !cb(json)) {
Expand Down

0 comments on commit f6441df

Please sign in to comment.