mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 18:05:44 +02:00
chore: Remove template Callbacks (#4431)
Signed-off-by: Stepan Bagritsevich <stefan@dragonflydb.io>
This commit is contained in:
parent
29cde99ca5
commit
f6441df57a
1 changed files with 2 additions and 2 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue