Skip to content

Commit

Permalink
fixed: using clang-format for redis_impl
Browse files Browse the repository at this point in the history
  • Loading branch information
BobLiu20 committed Jan 3, 2025
1 parent 5d4f24b commit 8f10e92
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1305,12 +1305,14 @@ every bucket has its own BucketContext for sending data---for locating reply-
std::vector<std::unique_ptr<std::vector<char>>> exists_chars(storage_slice);
for (unsigned i = 0; i < storage_slice; ++i) {
if (!exists_split[i].empty()) {
exists_chars[i] = std::make_unique<std::vector<char>>(exists_split[i].size());
std::transform(exists_split[i].begin(), exists_split[i].end(), exists_chars[i]->begin(), [](bool b) {
return static_cast<char>(b);
});

thread_context->HandlePushBack(i, exists_chars[i]->data(), exists_chars[i]->size() * sizeof(char));
exists_chars[i] =
std::make_unique<std::vector<char>>(exists_split[i].size());
std::transform(exists_split[i].begin(), exists_split[i].end(),
exists_chars[i]->begin(),
[](bool b) { return static_cast<char>(b); });

thread_context->HandlePushBack(i, exists_chars[i]->data(),
exists_chars[i]->size() * sizeof(char));
}
}

Expand Down

0 comments on commit 8f10e92

Please sign in to comment.